﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:Microsoft.FamilyShow;assembly=FamilyShow" xmlns:Microsoft.FamilyShowLib="clr-namespace:Microsoft.FamilyShowLib;assembly=FamilyShowLib" xmlns:System="clr-namespace:System;assembly=mscorlib">

  <local:ImageConverter x:Key="ImageConverter"/>

  <!-- NormalBrush is used as the Background for SimpleButton, SimpleRepeatButton -->
  <LinearGradientBrush x:Key="NormalBrush" EndPoint="0,1" StartPoint="0,0">
    <GradientStop Color="#EEE" Offset="0.0" />
    <GradientStop Color="#CCC" Offset="1.0" />
  </LinearGradientBrush>

  <!-- LightBrush is used for content areas such as Menu, Tab Control background -->
  <LinearGradientBrush x:Key="LightBrush" EndPoint="0,1" StartPoint="0,0">
    <GradientStop Color="#FFF" Offset="0.0" />
    <GradientStop Color="#EEE" Offset="1.0" />
  </LinearGradientBrush>

  <!-- PressedBrush is used for Pressed in Button, Radio Button, CheckBox -->
  <LinearGradientBrush x:Key="PressedBrush" EndPoint="0,1" StartPoint="0,0">
    <GradientStop Color="#FFB3C1D4" Offset="0" />
    <GradientStop Color="#FF8A9AA9" Offset="1" />
    <GradientStop Color="#FFC1D1E5" Offset="0.465" />
    <GradientStop Color="#FF91A2B2" Offset="0.485" />
    <GradientStop Color="#FFC0D0E4" Offset="0.48" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="PressedBorderBrush" EndPoint="0,1" StartPoint="0,0">
    <GradientStop Color="#444" Offset="0.0" />
    <GradientStop Color="#888" Offset="1.0" />
  </LinearGradientBrush>

  <!-- Disabled Brushes are used for the Disabled look of each control -->
  <SolidColorBrush x:Key="DisabledForegroundBrush" Color="#888" />
  <SolidColorBrush x:Key="DisabledBackgroundBrush" Color="#EEE" />
  <SolidColorBrush x:Key="DisabledBorderBrush" Color="#AAA" />

  <!-- DefaultedBorderBrush is used to show KeyBoardFocus -->
  <LinearGradientBrush x:Key="DefaultedBorderBrush" EndPoint="0,1" StartPoint="0,0">
    <GradientStop Color="#777" Offset="0.0" />
    <GradientStop Color="#000" Offset="1.0" />
  </LinearGradientBrush>

  <!-- Style and Template pairs are used to define each control Part -->
  <!-- The Style provides default values on the control; the Template gives the elements for each control -->

  <LinearGradientBrush x:Key="SelectedListBoxBrush" EndPoint="1,0.5" StartPoint="0,0.5">
    <GradientStop Color="#33F7F7F7" Offset="0" />
    <GradientStop Color="#00FFFFFF" Offset="0.98" />
  </LinearGradientBrush>

  <SolidColorBrush x:Key="SolidBorderBrush" Color="#888" />

  <!-- This is the thickness setting for most borders -->
  <Thickness x:Key="BorderThickness">1,1,1,1</Thickness>

  <!-- Padding value for labels -->
  <Thickness x:Key="LabelPadding">5,8,5,2</Thickness>

  <!-- The Background Brush is used as the background for the Main Window  -->
  <LinearGradientBrush x:Key="MainBackgroundBrush" StartPoint="0.102759,-0.0431519" EndPoint="0.802759,0.913967">
    <GradientStop Color="#FF808593" Offset="0" />
    <GradientStop Color="#FFE8EBEC" Offset="1" />
  </LinearGradientBrush>

  <!-- The Background Brush is used as the background for the Headers and Footers-->
  <SolidColorBrush x:Key="BackgroundBrush" Color="#FF323F56" />

  <!-- The Panel Gradient Brush is used as the background for the panels such as the Details Panel -->
  <LinearGradientBrush x:Key="PanelGradientBrush" StartPoint="0.0337444,0.5" EndPoint="1.24881,0.5">
    <GradientStop Color="#FFEFF6FF" Offset="0" />
    <GradientStop Color="#FFA3AFBA" Offset="1" />
  </LinearGradientBrush>

  <!-- The Diagram Gradient Brush is used as the background for the Diagram area-->
  <LinearGradientBrush x:Key="DiagramGradientBrush" StartPoint="-0.00995466,0.777842" EndPoint="1.63827,-0.110634">
    <GradientStop Color="#FFEFF6FF" Offset="0" />
    <GradientStop Color="#FFA3AFBA" Offset="1" />
  </LinearGradientBrush>

  <!-- Colors used for the Welcome Header -->
  <LinearGradientBrush x:Key="WelcomeBackgroundBrush" StartPoint="0.132488,0.500228" EndPoint="1,0.500228">
    <GradientStop Color="#FFF1F8FC" Offset="0" />
    <GradientStop Color="#FFA4B0B9" Offset="1" />
  </LinearGradientBrush>
  <SolidColorBrush x:Key="WelcomeHeaderFontColor" Color="#FF223166" />

  <!-- This is a color setting for text -->
  <SolidColorBrush x:Key="FontColor" Color="#FF1F3066" />

  <SolidColorBrush x:Key="HeaderFontColor" Color="#FFFFFFFF" />

  <SolidColorBrush x:Key="InputFontColor" Color="#FFFFFFFF" />

  <SolidColorBrush x:Key="GridHeaderFontColor" Color="#FF888888" />

  <SolidColorBrush x:Key="AlternateFontColor" Color="#FF888888" />

  <SolidColorBrush x:Key="SharedBirthdaysGroupHeaderColor" Color="#FF888888" />

  <SolidColorBrush x:Key="PersonInfoBackgroundBrush" Color="#FFD8D8D8" />

  <SolidColorBrush x:Key="PhotosBackgroundBrush" Color="#FF565656" />

  <!-- The Border Brush is used as the color for most borders -->
  <SolidColorBrush x:Key="BorderBrush" Color="#FFFFFFFF" />

  <LinearGradientBrush x:Key="InputBackgroundBrush" EndPoint="0.504,0.351" StartPoint="0.504,-0.319">
    <GradientStop Color="#FF333333" Offset="0.416" />
    <GradientStop Color="#FF636F8B" Offset="0.54" />
  </LinearGradientBrush>

  <DrawingBrush x:Key="PersonFigureFill" Stretch="Uniform">
    <DrawingBrush.Drawing>
      <DrawingGroup>
        <GeometryDrawing Geometry="F1 M 6.53515625,4.4921875 C 6.53515625,2.01171875 8.546875,0 11.029296875,0 C 13.509765625,0 15.521484375,2.01171875 15.521484375,4.4921875 C 15.521484375,6.974609375 13.509765625,8.986328125 11.029296875,8.986328125 C 8.546875,8.986328125 6.53515625,6.974609375 6.53515625,4.4921875 Z" Brush="#FFFFFFFF" />
        <GeometryDrawing Geometry="F1 M 12.05078125,25.939453125 C 12.05078125,25.939453125 12.05078125,40.1640625 12.05078125,41.490234375 C 12.05078125,42.818359375 13.990234375,43.533203125 14.806640625,43.533203125 C 15.625,43.533203125 17.0546875,43.431640625 17.0546875,41.6953125 C 17.0546875,39.958984375 17.0546875,15.521484375 17.0546875,15.521484375 C 17.0546875,15.521484375 18.5859375,15.521484375 18.5859375,15.521484375 C 18.5859375,15.521484375 18.5859375,23.693359375 18.5859375,24.91796875 C 18.5859375,26.14453125 19.810546875,26.451171875 20.525390625,26.451171875 C 21.240234375,26.451171875 22.466796875,26.349609375 22.466796875,25.123046875 C 22.466796875,23.8984375 22.16015625,16.236328125 22.16015625,14.1953125 C 22.16015625,12.15234375 20.73046875,9.498046875 17.2578125,9.498046875 C 17.2578125,9.498046875 5.20703125,9.498046875 5.20703125,9.498046875 C 1.736328125,9.498046875 0.306640625,12.15234375 0.306640625,14.1953125 C 0.306640625,16.236328125 0,23.8984375 0,25.123046875 C 0,26.349609375 1.224609375,26.451171875 1.939453125,26.451171875 C 2.654296875,26.451171875 3.880859375,26.14453125 3.880859375,24.91796875 C 3.880859375,23.693359375 3.880859375,15.521484375 3.880859375,15.521484375 C 3.880859375,15.521484375 5.412109375,15.521484375 5.412109375,15.521484375 C 5.412109375,15.521484375 5.412109375,39.958984375 5.412109375,41.6953125 C 5.412109375,43.431640625 6.841796875,43.533203125 7.658203125,43.533203125 C 8.4765625,43.533203125 10.416015625,42.818359375 10.416015625,41.490234375 C 10.416015625,40.1640625 10.416015625,25.939453125 10.416015625,25.939453125 C 10.416015625,25.939453125 12.05078125,25.939453125 12.05078125,25.939453125 Z" Brush="#FFFFFFFF" />
      </DrawingGroup>

    </DrawingBrush.Drawing>
  </DrawingBrush>

  <SolidColorBrush x:Key="LogoBrush" Color="#FFFFFFFF" />

  <!-- Vertigo Logo -->
  <DrawingBrush x:Key="OGITREV">
    <DrawingBrush.Drawing>
      <DrawingGroup>
        <GeometryDrawing Brush="{StaticResource LogoBrush}" Geometry="F1 M 728.667,269.665L 728.928,269.665L 740.899,203.05L 757.12,203.05L 737.042,299.05L 720.555,299.05L 700.48,203.05L 716.698,203.05L 728.667,269.665 Z " />
        <GeometryDrawing Brush="{StaticResource LogoBrush}" Geometry="F1 M 646.54,299.05L 646.54,284.691L 676.058,284.691L 676.058,256.503L 654.784,256.503L 654.784,242.142L 676.058,242.142L 676.058,217.41L 648.402,217.41L 648.402,203.05L 692.545,203.05L 692.545,299.05L 646.54,299.05 Z " />
        <GeometryDrawing Brush="{StaticResource LogoBrush}" Geometry="F1 M 619.862,259.696C 616.938,259.696 613.477,259.561 611.35,259.295L 599.652,299.05L 582.896,299.05L 596.855,255.576C 591.277,253.048 585.292,246.795 585.292,231.371C 585.292,210.897 594.732,203.05 613.214,203.05L 636.35,203.05L 636.35,299.05L 619.862,299.05L 619.862,259.696 Z M 619.862,216.613L 614.008,216.613C 605.102,216.613 601.777,219.936 601.777,231.371C 601.777,242.806 605.102,246.134 614.008,246.134L 619.862,246.134L 619.862,216.613 Z " />
        <GeometryDrawing Brush="{StaticResource LogoBrush}" Geometry="F1 M 563.93,299.05L 547.441,299.05L 547.441,217.41L 531.487,217.41L 531.487,203.05L 579.889,203.05L 579.889,217.41L 563.93,217.41L 563.93,299.05 Z " />
        <GeometryDrawing Brush="{StaticResource LogoBrush}" Geometry="F1 M 505.876,299.05L 505.876,203.05L 522.362,203.05L 522.362,299.05L 505.876,299.05 Z " />
        <GeometryDrawing Brush="{StaticResource LogoBrush}" Geometry="F1 M 465.766,263.415L 458.055,263.415L 458.055,272.722C 458.055,282.298 460.448,286.019 467.1,286.019C 472.813,286.019 474.808,282.03 474.808,275.915L 474.808,226.584C 474.808,218.477 471.48,216.082 467.495,216.082C 460.982,216.082 458.055,219.806 458.055,234.165L 442.362,234.165L 442.362,228.05C 442.362,213.686 450.61,201.722 467.1,201.722C 483.323,201.722 491.297,212.759 491.297,226.321L 491.297,275.78C 491.297,291.071 482.256,300.384 469.227,300.384C 461.511,300.384 457.521,297.717 452.605,291.868L 449.545,299.05L 441.568,299.05L 441.568,250.384L 465.766,250.384L 465.766,263.415 Z " />
        <GeometryDrawing Brush="{StaticResource LogoBrush}" Geometry="F1 M 429.646,275.78C 429.646,289.342 421.672,300.384 404.386,300.384C 387.1,300.384 379.12,289.342 379.12,275.78L 379.12,226.321C 379.12,212.759 387.1,201.722 404.386,201.722C 421.672,201.722 429.646,212.759 429.646,226.321L 429.646,275.78 Z M 413.162,226.717C 413.162,219.535 411.034,216.082 404.386,216.082C 397.74,216.082 395.612,219.535 395.612,226.717L 395.612,275.384C 395.612,282.561 397.74,286.019 404.386,286.019C 411.034,286.019 413.162,282.561 413.162,275.384L 413.162,226.717 Z " />
        <GeometryDrawing Brush="{StaticResource LogoBrush}" Geometry="F1 M 773.188,203.05L 773.188,204.571L 771.18,204.571L 771.18,212.05L 769.462,212.05L 769.462,204.571L 767.454,204.571L 767.454,203.05L 773.188,203.05 Z " />
        <GeometryDrawing Brush="{StaticResource LogoBrush}" Geometry="F1 M 774.501,212.05L 774.501,203.05L 776.907,203.05L 778.464,208.959L 778.49,208.959L 780.047,203.05L 782.454,203.05L 782.454,212.05L 780.982,212.05L 780.982,204.97L 780.959,204.97L 779.126,212.05L 777.829,212.05L 775.995,204.97L 775.969,204.97L 775.969,212.05L 774.501,212.05 Z " />
        <GeometryDrawing Brush="{StaticResource LogoBrush}" Geometry="F1 M 114.616,240.705C 114.616,241.054 114.605,241.359 114.583,241.62C 114.561,241.882 114.523,242.11 114.469,242.306C 114.415,242.502 114.344,242.676 114.258,242.828C 114.171,242.981 114.019,243.166 113.803,243.382C 113.585,243.598 113.13,243.929 112.436,244.373C 111.742,244.817 110.881,245.25 109.851,245.671C 108.821,246.094 107.639,246.451 106.305,246.744C 104.972,247.035 103.514,247.182 101.931,247.182C 99.1985,247.182 96.7317,246.726 94.5311,245.815C 92.3299,244.903 90.4543,243.558 88.9042,241.778C 87.3534,239.998 86.1607,237.801 85.3261,235.186C 84.4914,232.571 84.0741,229.559 84.0741,226.152C 84.0741,222.658 84.5239,219.544 85.4237,216.809C 86.3234,214.075 87.5858,211.758 89.2121,209.859C 90.8385,207.96 92.7843,206.511 95.0501,205.513C 97.3157,204.514 99.8247,204.015 102.579,204.015C 103.793,204.015 104.974,204.129 106.124,204.356C 107.273,204.584 108.335,204.87 109.31,205.216C 110.286,205.562 111.153,205.962 111.912,206.416C 112.671,206.871 113.196,207.244 113.49,207.535C 113.782,207.828 113.972,208.05 114.058,208.203C 114.145,208.355 114.215,208.535 114.27,208.742C 114.324,208.949 114.368,209.194 114.4,209.477C 114.433,209.761 114.449,210.098 114.449,210.49C 114.449,210.926 114.427,211.296 114.383,211.601C 114.34,211.906 114.275,212.162 114.187,212.369C 114.1,212.576 113.997,212.729 113.877,212.826C 113.757,212.925 113.61,212.974 113.435,212.974C 113.13,212.974 112.705,212.761 112.16,212.337C 111.615,211.912 110.912,211.444 110.051,210.932C 109.19,210.42 108.144,209.952 106.912,209.528C 105.68,209.103 104.204,208.89 102.482,208.89C 100.607,208.89 98.9003,209.264 97.3638,210.013C 95.8274,210.762 94.5135,211.864 93.4237,213.317C 92.3339,214.772 91.4889,216.546 90.8898,218.64C 90.2902,220.734 89.9907,223.126 89.9907,225.817C 89.9907,228.486 90.2791,230.847 90.8573,232.897C 91.4347,234.948 92.2629,236.663 93.3423,238.041C 94.4218,239.419 95.7459,240.46 97.3157,241.166C 98.8853,241.871 100.662,242.224 102.646,242.224C 104.325,242.224 105.791,242.018 107.045,241.606C 108.299,241.194 109.367,240.733 110.25,240.224C 111.133,239.714 111.858,239.253 112.425,238.841C 112.991,238.43 113.439,238.224 113.766,238.224C 113.918,238.224 114.049,238.257 114.158,238.322C 114.267,238.387 114.354,238.513 114.419,238.697C 114.484,238.882 114.534,239.138 114.566,239.465C 114.599,239.792 114.616,240.205 114.616,240.705 Z " />
        <GeometryDrawing Brush="{StaticResource LogoBrush}" Geometry="F1 M 153.456,245.808C 153.456,245.981 153.423,246.133 153.358,246.263C 153.293,246.393 153.152,246.502 152.935,246.588C 152.717,246.675 152.414,246.74 152.023,246.783C 151.633,246.826 151.112,246.848 150.461,246.848C 149.896,246.848 149.435,246.826 149.077,246.783C 148.719,246.74 148.432,246.669 148.215,246.572C 147.997,246.475 147.829,246.339 147.71,246.166C 147.59,245.992 147.488,245.776 147.401,245.515L 143.527,235.597C 143.072,234.47 142.599,233.434 142.111,232.492C 141.622,231.549 141.042,230.736 140.368,230.053C 139.695,229.37 138.902,228.839 137.99,228.459C 137.078,228.08 135.982,227.89 134.7,227.89L 130.954,227.89L 130.954,245.808C 130.954,245.981 130.906,246.133 130.808,246.263C 130.71,246.393 130.559,246.497 130.353,246.572C 130.148,246.647 129.866,246.712 129.51,246.767C 129.153,246.821 128.704,246.848 128.163,246.848C 127.621,246.848 127.172,246.821 126.815,246.767C 126.458,246.712 126.171,246.647 125.955,246.572C 125.739,246.496 125.587,246.393 125.501,246.263C 125.414,246.132 125.371,245.981 125.371,245.806L 125.371,206.794C 125.371,205.948 125.593,205.357 126.038,205.02C 126.483,204.684 126.955,204.515 127.454,204.515L 136.405,204.515C 137.468,204.515 138.352,204.542 139.058,204.597C 139.763,204.651 140.398,204.711 140.962,204.776C 142.589,205.059 144.027,205.504 145.275,206.112C 146.522,206.721 147.569,207.492 148.415,208.427C 149.262,209.362 149.896,210.432 150.32,211.638C 150.743,212.843 150.954,214.175 150.954,215.63C 150.954,217.043 150.764,218.309 150.384,219.428C 150.004,220.547 149.456,221.536 148.74,222.394C 148.023,223.252 147.165,223.996 146.166,224.626C 145.167,225.257 144.049,225.789 142.811,226.224C 143.505,226.528 144.135,226.912 144.699,227.378C 145.263,227.845 145.79,228.403 146.278,229.054C 146.766,229.705 147.227,230.453 147.661,231.298C 148.095,232.145 148.529,233.098 148.963,234.161L 152.74,243.432C 153.043,244.214 153.238,244.761 153.325,245.076C 153.412,245.39 153.456,245.634 153.456,245.808 Z M 145.038,216.212C 145.038,214.561 144.668,213.165 143.929,212.024C 143.19,210.884 141.951,210.064 140.213,209.564C 139.669,209.412 139.055,209.303 138.371,209.238C 137.686,209.173 136.79,209.14 135.682,209.14L 130.954,209.14L 130.954,223.348L 136.431,223.348C 137.909,223.348 139.185,223.169 140.262,222.811C 141.337,222.453 142.234,221.953 142.951,221.312C 143.668,220.671 144.195,219.916 144.532,219.047C 144.869,218.179 145.038,217.233 145.038,216.212 Z " />
        <GeometryDrawing Brush="{StaticResource LogoBrush}" Geometry="F1 M 188.361,244.323C 188.361,244.715 188.338,245.058 188.295,245.351C 188.252,245.645 188.176,245.89 188.067,246.086C 187.958,246.281 187.833,246.423 187.693,246.51C 187.551,246.597 187.394,246.64 187.22,246.64L 166.988,246.64C 166.488,246.64 166.016,246.472 165.57,246.136C 165.125,245.8 164.902,245.208 164.902,244.362L 164.902,206.794C 164.902,205.947 165.125,205.356 165.57,205.02C 166.016,204.684 166.488,204.515 166.988,204.515L 187.002,204.515C 187.176,204.515 187.333,204.559 187.474,204.646C 187.616,204.733 187.73,204.875 187.817,205.07C 187.904,205.266 187.974,205.511 188.029,205.804C 188.083,206.098 188.111,206.462 188.111,206.897C 188.111,207.289 188.083,207.632 188.029,207.925C 187.974,208.22 187.904,208.458 187.816,208.643C 187.729,208.828 187.615,208.964 187.474,209.052C 187.333,209.139 187.175,209.182 187.001,209.182L 170.486,209.182L 170.486,222.39L 184.628,222.39C 184.801,222.39 184.959,222.44 185.1,222.537C 185.241,222.636 185.361,222.772 185.458,222.946C 185.556,223.121 185.627,223.36 185.67,223.665C 185.713,223.97 185.736,224.329 185.736,224.742C 185.736,225.135 185.713,225.473 185.67,225.756C 185.627,226.039 185.556,226.268 185.458,226.442C 185.361,226.617 185.241,226.742 185.1,226.818C 184.959,226.894 184.801,226.932 184.628,226.932L 170.486,226.932L 170.486,241.974L 187.219,241.974C 187.392,241.974 187.55,242.017 187.692,242.104C 187.833,242.192 187.958,242.327 188.067,242.512C 188.176,242.697 188.252,242.936 188.295,243.23C 188.338,243.524 188.361,243.888 188.361,244.323 Z " />
        <GeometryDrawing Brush="{StaticResource LogoBrush}" Geometry="F1 M 231.63,244.663C 231.803,245.141 231.896,245.527 231.907,245.82C 231.917,246.115 231.836,246.337 231.663,246.49C 231.489,246.642 231.201,246.739 230.8,246.783C 230.398,246.826 229.861,246.848 229.189,246.848C 228.516,246.848 227.978,246.832 227.577,246.8C 227.176,246.767 226.872,246.712 226.666,246.637C 226.46,246.561 226.308,246.457 226.21,246.326C 226.112,246.196 226.02,246.033 225.934,245.837L 222.32,235.557L 204.807,235.557L 201.357,245.707C 201.292,245.903 201.204,246.071 201.096,246.212C 200.988,246.354 200.83,246.474 200.624,246.572C 200.418,246.669 200.125,246.74 199.745,246.783C 199.365,246.826 198.872,246.848 198.264,246.848C 197.635,246.848 197.119,246.821 196.718,246.767C 196.316,246.712 196.034,246.61 195.872,246.457C 195.709,246.305 195.633,246.082 195.644,245.788C 195.654,245.494 195.747,245.108 195.92,244.63L 210.048,205.478C 210.135,205.24 210.249,205.044 210.39,204.893C 210.53,204.741 210.737,204.622 211.008,204.535C 211.279,204.448 211.627,204.388 212.05,204.356C 212.473,204.323 213.01,204.307 213.661,204.307C 214.355,204.307 214.931,204.323 215.387,204.356C 215.842,204.388 216.211,204.448 216.493,204.535C 216.775,204.622 216.992,204.746 217.144,204.909C 217.296,205.072 217.415,205.272 217.502,205.511L 231.63,244.663 Z M 213.499,210.098L 213.466,210.098L 206.207,231.098L 220.855,231.098L 213.499,210.098 Z " />
        <GeometryDrawing Brush="{StaticResource LogoBrush}" Geometry="F1 M 263.187,206.923C 263.187,207.335 263.165,207.693 263.122,207.996C 263.079,208.3 263.008,208.544 262.911,208.729C 262.813,208.913 262.693,209.048 262.553,209.135C 262.411,209.222 262.254,209.265 262.081,209.265L 250.229,209.265L 250.229,245.806C 250.229,245.98 250.185,246.132 250.099,246.263C 250.012,246.393 249.861,246.496 249.644,246.572C 249.428,246.647 249.141,246.712 248.784,246.767C 248.428,246.821 247.978,246.848 247.437,246.848C 246.918,246.848 246.474,246.821 246.106,246.767C 245.738,246.712 245.446,246.647 245.23,246.572C 245.014,246.496 244.862,246.393 244.775,246.263C 244.689,246.132 244.646,245.98 244.646,245.806L 244.646,209.265L 232.794,209.265C 232.62,209.265 232.463,209.222 232.322,209.135C 232.181,209.048 232.067,208.913 231.98,208.729C 231.893,208.544 231.823,208.3 231.769,207.996C 231.714,207.693 231.687,207.335 231.687,206.923C 231.687,206.511 231.714,206.147 231.769,205.833C 231.823,205.518 231.893,205.264 231.98,205.069C 232.067,204.873 232.181,204.733 232.322,204.645C 232.463,204.559 232.62,204.515 232.794,204.515L 262.081,204.515C 262.254,204.515 262.411,204.559 262.553,204.645C 262.693,204.733 262.813,204.873 262.911,205.069C 263.008,205.264 263.079,205.518 263.122,205.833C 263.165,206.147 263.187,206.511 263.187,206.923 Z " />
        <GeometryDrawing Brush="{StaticResource LogoBrush}" Geometry="F1 M 296.049,244.323C 296.049,244.715 296.027,245.058 295.984,245.351C 295.941,245.645 295.864,245.89 295.756,246.086C 295.647,246.281 295.522,246.423 295.381,246.51C 295.24,246.597 295.083,246.64 294.909,246.64L 274.676,246.64C 274.176,246.64 273.704,246.472 273.259,246.136C 272.814,245.8 272.591,245.208 272.591,244.362L 272.591,206.794C 272.591,205.947 272.814,205.356 273.259,205.02C 273.704,204.684 274.177,204.515 274.677,204.515L 294.691,204.515C 294.864,204.515 295.022,204.559 295.163,204.646C 295.305,204.733 295.418,204.875 295.506,205.07C 295.593,205.266 295.663,205.511 295.718,205.804C 295.772,206.098 295.799,206.462 295.799,206.897C 295.799,207.289 295.772,207.632 295.717,207.925C 295.663,208.22 295.592,208.458 295.505,208.643C 295.418,208.828 295.304,208.964 295.163,209.052C 295.021,209.139 294.864,209.182 294.689,209.182L 278.174,209.182L 278.174,222.39L 292.316,222.39C 292.49,222.39 292.648,222.44 292.789,222.537C 292.93,222.636 293.049,222.772 293.147,222.946C 293.245,223.121 293.316,223.36 293.359,223.665C 293.402,223.97 293.424,224.329 293.424,224.742C 293.424,225.135 293.402,225.473 293.359,225.756C 293.316,226.039 293.245,226.268 293.147,226.442C 293.049,226.617 292.93,226.742 292.789,226.818C 292.648,226.894 292.49,226.932 292.316,226.932L 278.174,226.932L 278.174,241.974L 294.907,241.974C 295.081,241.974 295.239,242.017 295.381,242.104C 295.522,242.192 295.647,242.327 295.756,242.512C 295.864,242.697 295.941,242.936 295.984,243.23C 296.027,243.524 296.049,243.888 296.049,244.323 Z " />
        <GeometryDrawing Brush="{StaticResource LogoBrush}" Geometry="F1 M 340.851,224.959C 340.851,228.605 340.385,231.79 339.452,234.514C 338.519,237.238 337.158,239.495 335.369,241.285C 333.579,243.076 331.383,244.416 328.78,245.306C 326.177,246.196 323.075,246.64 319.474,246.64L 310.559,246.64C 310.06,246.64 309.588,246.472 309.143,246.136C 308.698,245.8 308.476,245.208 308.476,244.362L 308.476,206.794C 308.476,205.947 308.698,205.356 309.143,205.02C 309.588,204.684 310.06,204.515 310.559,204.515L 320.092,204.515C 323.736,204.515 326.816,204.987 329.333,205.931C 331.849,206.875 333.958,208.232 335.661,210.001C 337.364,211.77 338.655,213.913 339.534,216.43C 340.412,218.947 340.851,221.791 340.851,224.959 Z M 334.976,225.183C 334.976,222.906 334.694,220.787 334.129,218.825C 333.564,216.863 332.68,215.166 331.474,213.735C 330.268,212.304 328.743,211.188 326.896,210.386C 325.05,209.584 322.672,209.182 319.762,209.182L 314.06,209.182L 314.06,241.932L 319.827,241.932C 322.519,241.932 324.79,241.596 326.636,240.924C 328.482,240.252 330.024,239.222 331.262,237.834C 332.501,236.447 333.429,234.707 334.048,232.614C 334.667,230.522 334.976,228.045 334.976,225.183 Z " />
        <GeometryDrawing Brush="{StaticResource LogoBrush}" Geometry="F1 M 307.014,287.902C 307.014,289.225 306.846,290.445 306.51,291.562C 306.174,292.679 305.702,293.683 305.095,294.571C 304.488,295.462 303.756,296.243 302.899,296.915C 302.042,297.587 301.077,298.152 300.003,298.608C 298.93,299.063 297.78,299.404 296.555,299.631C 295.33,299.86 293.926,299.974 292.342,299.974L 281.346,299.974C 280.848,299.974 280.376,299.806 279.931,299.47C 279.486,299.134 279.264,298.541 279.264,297.695L 279.264,260.127C 279.264,259.281 279.486,258.69 279.931,258.352C 280.376,258.016 280.848,257.848 281.346,257.848L 290.911,257.848C 293.427,257.848 295.487,258.087 297.092,258.566C 298.697,259.042 300.036,259.738 301.11,260.649C 302.184,261.562 302.991,262.68 303.534,264.005C 304.076,265.329 304.348,266.826 304.348,268.498C 304.348,269.498 304.228,270.454 303.99,271.365C 303.751,272.277 303.398,273.118 302.932,273.889C 302.466,274.66 301.88,275.35 301.176,275.958C 300.471,276.566 299.663,277.066 298.752,277.457C 299.901,277.673 300.974,278.069 301.972,278.644C 302.969,279.22 303.842,279.951 304.59,280.839C 305.338,281.73 305.93,282.772 306.363,283.964C 306.797,285.157 307.014,286.47 307.014,287.902 Z M 298.598,269.044C 298.598,268.022 298.457,267.098 298.176,266.272C 297.894,265.446 297.452,264.744 296.846,264.168C 296.241,263.592 295.451,263.152 294.478,262.847C 293.506,262.542 292.219,262.39 290.62,262.39L 284.848,262.39L 284.848,276.057L 291.204,276.057C 292.652,276.057 293.819,275.867 294.706,275.485C 295.592,275.105 296.327,274.595 296.911,273.954C 297.495,273.312 297.922,272.562 298.192,271.703C 298.462,270.845 298.598,269.958 298.598,269.044 Z M 301.139,288.225C 301.139,286.967 300.939,285.862 300.539,284.907C 300.139,283.953 299.555,283.151 298.786,282.5C 298.018,281.85 297.055,281.355 295.898,281.019C 294.74,280.683 293.286,280.515 291.533,280.515L 284.848,280.515L 284.848,295.348L 292.961,295.348C 294.237,295.348 295.351,295.196 296.303,294.894C 297.255,294.589 298.094,294.139 298.819,293.542C 299.544,292.946 300.111,292.204 300.523,291.316C 300.934,290.425 301.139,289.397 301.139,288.225 Z " />
        <GeometryDrawing Brush="{StaticResource LogoBrush}" Geometry="F1 M 330.422,283.602L 330.422,299.139C 330.422,299.313 330.378,299.466 330.292,299.596C 330.206,299.726 330.055,299.829 329.84,299.904C 329.626,299.98 329.335,300.045 328.969,300.1C 328.603,300.154 328.163,300.182 327.646,300.182C 327.108,300.182 326.661,300.154 326.306,300.1C 325.952,300.045 325.661,299.98 325.435,299.904C 325.21,299.829 325.053,299.726 324.967,299.596C 324.881,299.466 324.838,299.313 324.838,299.139L 324.838,283.602L 312.924,259.822C 312.685,259.324 312.539,258.933 312.485,258.649C 312.43,258.368 312.485,258.152 312.648,257.998C 312.81,257.847 313.103,257.748 313.527,257.705C 313.95,257.662 314.519,257.64 315.236,257.64C 315.887,257.64 316.413,257.662 316.814,257.705C 317.215,257.748 317.536,257.808 317.775,257.884C 318.013,257.96 318.192,258.069 318.312,258.21C 318.431,258.352 318.545,258.531 318.654,258.748L 324.48,270.865C 325.02,272.016 325.559,273.222 326.097,274.48C 326.635,275.74 327.184,277.011 327.743,278.292L 327.808,278.292C 328.303,277.054 328.813,275.821 329.34,274.595C 329.868,273.368 330.402,272.157 330.943,270.963L 336.802,258.78C 336.867,258.563 336.959,258.378 337.079,258.227C 337.198,258.074 337.361,257.96 337.567,257.884C 337.773,257.808 338.06,257.748 338.43,257.705C 338.798,257.662 339.265,257.64 339.829,257.64C 340.611,257.64 341.223,257.668 341.668,257.722C 342.113,257.777 342.422,257.878 342.596,258.032C 342.769,258.183 342.829,258.401 342.775,258.683C 342.721,258.966 342.574,259.345 342.336,259.822L 330.422,283.602 Z " />
        <GeometryDrawing Geometry="F1 M 357.454,202.515L 357.454,299.208">
          <GeometryDrawing.Pen>
            <Pen Thickness="1.33333" MiterLimit="2.75" Brush="{StaticResource LogoBrush}" />
          </GeometryDrawing.Pen>
        </GeometryDrawing>
      </DrawingGroup>
    </DrawingBrush.Drawing>
  </DrawingBrush>

  <!-- This brush is used when the person does not have a primary photo -->
  <DrawingBrush x:Key="NoPhotoBrush">
    <DrawingBrush.Drawing>
      <DrawingGroup>
        <DrawingGroup.Children>
          <GeometryDrawing Geometry="M 126.889,143.333L 250.889,143.333L 250.889,267.333L 126.889,267.333L 126.889,143.333 Z ">
            <GeometryDrawing.Brush>
              <LinearGradientBrush StartPoint="0,0.0215053" EndPoint="1,1">
                <LinearGradientBrush.GradientStops>
                  <GradientStop Color="#FFFFFFFF" Offset="0.00847458" />
                  <GradientStop Color="#FF949063" Offset="0.800847" />
                </LinearGradientBrush.GradientStops>
              </LinearGradientBrush>
            </GeometryDrawing.Brush>
          </GeometryDrawing>
          <GeometryDrawing Brush="#FF85825F" Geometry="F1 M 162.428,200.167C 162.428,184.671 175.003,172.085 190.509,172.085C 206.005,172.085 218.591,184.671 218.591,200.167C 218.591,215.683 206.005,228.249 190.509,228.249C 175.003,228.249 162.428,215.683 162.428,200.167 Z " />
          <GeometryDrawing Brush="#FF524F40" Geometry="F1 M 160.598,199.025C 160.598,183.529 173.174,170.943 188.68,170.943C 204.176,170.943 216.762,183.529 216.762,199.025C 216.762,214.541 204.176,227.107 188.68,227.107C 173.174,227.107 160.598,214.541 160.598,199.025 Z " />
          <GeometryDrawing Brush="#FF6D6B51" Geometry="F1 M 253.277,270.359C 250.065,261.438 253.089,268.956 244.895,249.789C 242.347,243.406 234.03,235.753 223.176,235.753L 163.176,235.753C 152.342,235.753 144.025,243.406 141.488,249.789C 138.94,256.153 135.803,261.438 132.631,270.359" />
          <GeometryDrawing Brush="#FF524F40" Geometry="F1 M 249.41,266.847C 246.198,257.926 249.222,265.444 241.028,246.278C 238.48,239.894 230.163,232.241 219.309,232.241L 159.309,232.241C 148.475,232.241 140.158,239.894 137.621,246.278C 135.074,252.641 131.936,257.926 128.764,266.847" />
          <GeometryDrawing Brush="#FFFFFFFF" Geometry="M 115.999,132.639L 260.777,132.639L 260.777,301.028L 115.999,301.028L 115.999,132.639 Z M 126.208,142.884L 250.208,142.884L 250.208,266.884L 126.208,266.884L 126.208,142.884 Z ">
            <GeometryDrawing.Pen>
              <Pen LineJoin="Round" Brush="#FFC0C1C3" />
            </GeometryDrawing.Pen>
          </GeometryDrawing>
        </DrawingGroup.Children>
      </DrawingGroup>
    </DrawingBrush.Drawing>
  </DrawingBrush>

  <!-- MenuPressedBrush - This brush is used for the Main Menu pressed and focused state-->
  <LinearGradientBrush x:Key="MenuPressedBrush" StartPoint="0.500023,0.999996" EndPoint="0.500023,4.37507e-006">
    <GradientStop Color="#FF323F56" Offset="0" />
    <GradientStop Color="#FF221E1F" Offset="0.960674" />
    <GradientStop Color="#FF221E1F" Offset="1" />
  </LinearGradientBrush>

  <SolidColorBrush x:Key="PopupMenuBackgroundBrush" Color="#FF323F56" />

  <SolidColorBrush x:Key="ListViewFontColor" Color="#FF2466C7" />

  <LinearGradientBrush x:Key="MenuIsHighlightedBrush" StartPoint="0.5,0.999996" EndPoint="0.5,4.37507e-006">
    <GradientStop Color="#FF434550" Offset="0" />
    <GradientStop Color="#FF424750" Offset="0.03" />
    <GradientStop Color="#FF323F56" Offset="0.775281" />
    <GradientStop Color="#FF323F56" Offset="1" />
  </LinearGradientBrush>

  <!-- ButtonBorderBrush is used as the Border for buttons  -->
  <LinearGradientBrush x:Key="ButtonBorderBrush" EndPoint="0,1" StartPoint="0,0">
    <GradientStop Color="#CCC" Offset="0.0" />
    <GradientStop Color="#444" Offset="1.0" />
  </LinearGradientBrush>

  <!-- MenuBorderBrush is used as the Border for MenuItems -->
  <LinearGradientBrush x:Key="MenuBorderBrush" EndPoint="0,1" StartPoint="0,0">
    <GradientStop Color="#CCC" Offset="0.0" />
    <GradientStop Color="#444" Offset="1.0" />
  </LinearGradientBrush>


  <SolidColorBrush x:Key="DisabledMenuForegroundBrush" Color="#888" />

  <!-- This BitmapEffect is used by the Simple MenuItem -->
  <DropShadowBitmapEffect x:Key="PopupDropShadow" ShadowDepth="1.5" Softness="0.15" />

  <!-- Histogram Brushes -->
  <SolidColorBrush x:Key="CategoryFillBrush" Color="#334B536D" />
  <SolidColorBrush x:Key="CategoryStrokeBrush" Color="#334B536D" />
  <SolidColorBrush x:Key="AxisBrush" Color="#FFD3D3D3" />

  <!-- Family Data Brushes -->
  <SolidColorBrush x:Key="FamilyDataFontColor" Color="#FF000000" />

  <SolidColorBrush x:Key="FamilyEditListViewSelectedBrush" Color="#7FFFBD0D" />

  <LinearGradientBrush x:Key="HeaderBackgroundBrush" StartPoint="0.499999,-1.04549" EndPoint="0.499999,0.990916">
    <GradientStop Color="#FFEFF6FF" Offset="0" />
    <GradientStop Color="#FFA3AFBA" Offset="1" />
  </LinearGradientBrush>

  <LinearGradientBrush x:Key="SelectedHeaderBackgroundBrush" StartPoint="0.499999,-1.04549" EndPoint="0.499999,0.990916">
    <GradientStop Color="#FF808DA8" Offset="0" />
    <GradientStop Color="#FF727B8F" Offset="1" />
  </LinearGradientBrush>

  <SolidColorBrush x:Key="HeaderBorderBrush" Color="#FFFFFFFF" />

  <SolidColorBrush x:Key="FamilyDataGridHeaderFontColor" Color="#FF000000" />
  <SolidColorBrush x:Key="FamilyDataGridSelectedHeaderFontColor" Color="#FFFFFFFF" />

  <SolidColorBrush x:Key="StatisticsControlBackgroundBrush" Color="#7FFFFFFF" />

  <SolidColorBrush x:Key="StatisticsHeaderBackgroundBrush" Color="#334B536D" />
  <SolidColorBrush x:Key="StatisticsHeaderBorderBrush" Color="#00000000" />

  <SolidColorBrush x:Key="FlowDocumentFontColor" Color="#FF1F3066" />

  <!-- This is the style for borders -->
  <Style x:Key="BorderStyle" TargetType="{x:Type Border}">
    <Setter Property="BorderThickness" Value="{DynamicResource BorderThickness}" />
    <Setter Property="BorderBrush" Value="{DynamicResource BorderBrush}" />
    <Setter Property="CornerRadius" Value="10,10,10,10" />
  </Style>

  <!-- This is the default style for all labels -->
  <Style TargetType="{x:Type Label}">
    <Setter Property="Foreground" Value="{DynamicResource FontColor}" />
    <Setter Property="FontWeight" Value="Normal" />
    <Setter Property="Padding" Value="{DynamicResource LabelPadding}" />
    <Setter Property="FontFamily" Value="Calibri" />
    <Setter Property="FontSize" Value="13" />
  </Style>

  <!-- This is the default style for all textblocks -->
  <Style TargetType="{x:Type TextBlock}">
    <Setter Property="FontFamily" Value="Calibri" />
  </Style>

  <!-- This is the default style for all radio buttons -->
  <Style TargetType="{x:Type RadioButton}">
    <Setter Property="Foreground" Value="{DynamicResource FontColor}" />
  </Style>

  <!-- This is the style for the avatar textblock text -->
  <Style x:Key="AvatarTextBlockStyle" TargetType="{x:Type TextBlock}">
    <Setter Property="Foreground" Value="{DynamicResource FontColor}" />
  </Style>

  <!-- This is the style for the list of photos on the PersonInfo control -->
  <Style x:Key="PhotosListStyle" TargetType="{x:Type ListBox}">
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type ListBox}">
          <ScrollViewer VerticalScrollBarVisibility="Disabled" HorizontalScrollBarVisibility="Disabled" Margin="5,5,5,5">
            <WrapPanel IsItemsHost="True" VerticalAlignment="Top" />
          </ScrollViewer>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <!-- This is the style for the photo containers in the list of photos on the PersonInfo control -->
  <Style x:Key="PhotosListItemStyle" TargetType="{x:Type ListBoxItem}">
    <Setter Property="Margin" Value="0,0,10,10" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type ListBoxItem}">
          <Grid SnapsToDevicePixels="true">
            <Border x:Name="Border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" />
            <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
          </Grid>
          <ControlTemplate.Triggers>
            <!-- Change IsSelected background to set the selection color for the photos -->
            <Trigger Property="IsSelected" Value="true">
              <Setter Property="Background" Value="#FFFFFF" TargetName="Border" />
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <!-- This is the style for the list of tags on the Person Info control -->
  <Style x:Key="TagsListStyle" TargetType="{x:Type ListBox}">
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type ListBox}">
          <ScrollViewer VerticalScrollBarVisibility="Disabled" HorizontalScrollBarVisibility="Disabled" Margin="5,5,5,5">
            <WrapPanel IsItemsHost="True" />
          </ScrollViewer>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <ControlTemplate x:Key="FamilyListViewItemTemplate" TargetType='{x:Type ListViewItem}'>
    <Grid SnapsToDevicePixels="True" Margin="0,3,0,0">
      <Border x:Name="Border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" />
      <GridViewRowPresenter TextBlock.Foreground="{DynamicResource ListViewFontColor}" TextBlock.FontSize="11" Content="{TemplateBinding Content}" Columns="{TemplateBinding GridView.ColumnCollection}" />
    </Grid>
    <ControlTemplate.Triggers>
      <!-- Change IsSelected SelectedListBoxBrush to set the selection color for the items -->
      <Trigger Property="IsSelected" Value="true">
        <Setter Property="Background" Value="{DynamicResource SelectedListBoxBrush}" TargetName="Border" />
      </Trigger>
    </ControlTemplate.Triggers>
  </ControlTemplate>

  <Style x:Key="FamilyListView" TargetType="ListView">
    <Setter Property="Margin" Value="0,2,0,0" />
    <Setter Property="SnapsToDevicePixels" Value="true" />
    <Setter Property="OverridesDefaultStyle" Value="true" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="ListView">
          <Border Name="Border">
            <ScrollViewer Style="{DynamicResource
                        {x:Static GridView.GridViewScrollViewerStyleKey}}">
              <ItemsPresenter />
            </ScrollViewer>
          </Border>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <Style TargetType="{x:Type GridViewColumnHeader}">
    <Setter Property="GridViewColumnHeader.Template">
      <Setter.Value>
        <ControlTemplate>
          <TextBlock Margin="2,0,0,2" Text="{TemplateBinding GridViewColumnHeader.Content}" TextAlignment="Left" VerticalAlignment="Center" Foreground="{DynamicResource GridHeaderFontColor}" />
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <Style x:Key="NameGridViewColumnHeader" TargetType="{x:Type GridViewColumnHeader}">
    <Setter Property="GridViewColumnHeader.Template">
      <Setter.Value>
        <ControlTemplate>
          <TextBlock Margin="4,0,0,2" Text="{TemplateBinding GridViewColumnHeader.Content}" TextAlignment="Left" VerticalAlignment="Center" Foreground="{DynamicResource GridHeaderFontColor}" />
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <Style x:Key="HeaderStyle" TargetType="{x:Type TextBlock}">
    <Setter Property="FontFamily" Value="Calibri" />
    <Setter Property="FontSize" Value="18" />
    <Setter Property="Foreground" Value="{DynamicResource FontColor}" />
    <Setter Property="Margin" Value="10,0,10,10" />
  </Style>

  <Style x:Key="SectionHeaderStyle" TargetType="{x:Type TextBlock}">
    <Setter Property="TextWrapping" Value="NoWrap" />
    <Setter Property="TextTrimming" Value="None" />
    <Setter Property="Foreground" Value="{DynamicResource FontColor}" />
    <Setter Property="FontWeight" Value="Bold" />
    <Setter Property="FontFamily" Value="Calibri" />
    <Setter Property="FontSize" Value="13" />
  </Style>

  <Style x:Key="DetailsBorderStyle" TargetType="{x:Type Border}">
    <Setter Property="CornerRadius" Value="10,10,10,10" />
    <Setter Property="BorderThickness" Value="1,1,1,1" />
    <Setter Property="BorderBrush" Value="{DynamicResource BorderBrush}" />
    <Setter Property="Margin" Value="10,10,10,0" />
    <Setter Property="Padding" Value="5,5,5,5" />
    <Setter Property="Background" Value="#FF262626" />
  </Style>

  <Style x:Key="NormalButtonStyle" TargetType="{x:Type Button}">
    <Setter Property="Foreground" Value="#FFFFFF" />
    <Setter Property="Width" Value="60" />
    <Setter Property="Height" Value="20" />
    <Setter Property="FontSize" Value="10" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type Button}">
          <Grid>
            <Rectangle x:Name="Rectangle" Stroke="{x:Null}" StrokeMiterLimit="1.000000" StrokeThickness="0.500000" RadiusX="5" RadiusY="5">
              <Rectangle.Fill>
                <LinearGradientBrush EndPoint="0.501,0.039" StartPoint="0.501,0.971">
                  <GradientStop Color="#FF4A7DDB" Offset="0.335" />
                  <GradientStop Color="#FF75B5E0" Offset="0.879" />
                  <GradientStop Color="#FF04448C" Offset="0.011" />
                  <GradientStop Color="#FF75B5E0" Offset="0.986" />
                </LinearGradientBrush>
              </Rectangle.Fill>
            </Rectangle>
            <ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" RecognizesAccessKey="True" />
          </Grid>
          <ControlTemplate.Triggers>
            <Trigger Property="IsKeyboardFocused" Value="true" />
            <Trigger Property="IsMouseOver" Value="true">
              <Setter Property="Fill" TargetName="Rectangle">
                <Setter.Value>
                  <LinearGradientBrush EndPoint="0.501,0.039" StartPoint="0.501,0.971">
                    <GradientStop Color="#FF5287E8" Offset="0.335" />
                    <GradientStop Color="#FFA4D4F4" Offset="0.879" />
                    <GradientStop Color="#FF075AB7" Offset="0.011" />
                    <GradientStop Color="#FFA4D4F4" Offset="0.986" />
                  </LinearGradientBrush>
                </Setter.Value>
              </Setter>
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <Style x:Key="BlackButtonStyle" TargetType="{x:Type Button}" BasedOn="{StaticResource NormalButtonStyle}">
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type Button}">
          <Grid>
            <Rectangle Stroke="{x:Null}" StrokeMiterLimit="1.000000" StrokeThickness="0.500000" RadiusX="5" RadiusY="5" x:Name="rectangle">
              <Rectangle.Fill>
                <LinearGradientBrush EndPoint="0.501,0.039" StartPoint="0.501,0.971">
                  <GradientStop Color="#FF273763" Offset="0.277" />
                  <GradientStop Color="#FFA6B5BC" Offset="0.879" />
                  <GradientStop Color="#FF092644" Offset="0.011" />
                  <GradientStop Color="#FFA6B5BC" Offset="0.986" />
                </LinearGradientBrush>
              </Rectangle.Fill>
            </Rectangle>
            <ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" RecognizesAccessKey="True" />
          </Grid>
          <ControlTemplate.Triggers>
            <Trigger Property="IsKeyboardFocused" Value="true" />
            <Trigger Property="IsMouseOver" Value="true">
              <Setter Property="Fill" TargetName="rectangle">
                <Setter.Value>
                  <LinearGradientBrush EndPoint="0.501,0.039" StartPoint="0.501,0.971">
                    <GradientStop Color="#FF41599A" Offset="0.277" />
                    <GradientStop Color="#FFB6C7CF" Offset="0.879" />
                    <GradientStop Color="#FF124376" Offset="0.011" />
                    <GradientStop Color="#FFB6C7CF" Offset="0.986" />
                  </LinearGradientBrush>
                </Setter.Value>
              </Setter>
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <Style x:Key="RedButtonStyle" TargetType="{x:Type Button}" BasedOn="{StaticResource NormalButtonStyle}">
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type Button}">
          <Grid>
            <Rectangle Stroke="#FF570606" StrokeMiterLimit="1.000000" StrokeThickness="0.500000" RadiusX="5" RadiusY="5" x:Name="rectangle">
              <Rectangle.Fill>
                <LinearGradientBrush EndPoint="0.501,0.039" StartPoint="0.501,0.971">
                  <GradientStop Color="#FF882119" Offset="0.234" />
                  <GradientStop Color="#FFC78A81" Offset="0.879" />
                  <GradientStop Color="#FF440D09" Offset="0.004" />
                  <GradientStop Color="#FFC78A81" Offset="0.986" />
                </LinearGradientBrush>
              </Rectangle.Fill>
            </Rectangle>
            <ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" RecognizesAccessKey="True" />
          </Grid>
          <ControlTemplate.Triggers>
            <Trigger Property="IsKeyboardFocused" Value="true" />
            <Trigger Property="IsMouseOver" Value="true">
              <Setter Property="Fill" TargetName="rectangle">
                <Setter.Value>
                  <LinearGradientBrush EndPoint="0.501,0.039" StartPoint="0.501,0.971">
                    <GradientStop Color="#FFC72E23" Offset="0.234" />
                    <GradientStop Color="#FFEAA49A" Offset="0.879" />
                    <GradientStop Color="#FF9A2017" Offset="0.004" />
                    <GradientStop Color="#FFEAA49A" Offset="0.986" />
                  </LinearGradientBrush>
                </Setter.Value>
              </Setter>
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <!--This sets the default style for all buttons-->
  <Style TargetType="{x:Type Button}" BasedOn="{StaticResource NormalButtonStyle}" />

  <!-- Repeat Button Style - This is used by ScrollBar for the up and down buttons -->
  <Style x:Key="RepeatButtonStyle" TargetType="{x:Type RepeatButton}" BasedOn="{x:Null}">
    <Setter Property="Background" Value="{DynamicResource NormalBrush}" />
    <Setter Property="BorderBrush" Value="{DynamicResource ButtonBorderBrush}" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type RepeatButton}">
          <Grid>
            <Border x:Name="Border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" />
            <ContentPresenter HorizontalAlignment="Center" x:Name="ContentPresenter" VerticalAlignment="Center" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}" />
          </Grid>
          <ControlTemplate.Triggers>
            <Trigger Property="IsKeyboardFocused" Value="true">
              <Setter Property="BorderBrush" Value="{DynamicResource DefaultedBorderBrush}" TargetName="Border" />
            </Trigger>
            <Trigger Property="IsPressed" Value="true">
              <Setter Property="Background" Value="{DynamicResource PressedBrush}" TargetName="Border" />
              <Setter Property="BorderBrush" Value="{DynamicResource PressedBorderBrush}" TargetName="Border" />
            </Trigger>
            <Trigger Property="IsEnabled" Value="false">
              <Setter Property="Background" Value="{DynamicResource DisabledBackgroundBrush}" TargetName="Border" />
              <Setter Property="BorderBrush" Value="{DynamicResource DisabledBorderBrush}" TargetName="Border" />
              <Setter Property="Foreground" Value="{DynamicResource DisabledForegroundBrush}" />
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <!-- Thumb Style - The Thumb is the draggable part of the Scrollbar -->
  <Style x:Key="ThumbStyle" TargetType="{x:Type Thumb}" BasedOn="{x:Null}">
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type Thumb}">
          <Grid Margin="0,0,0,0" x:Name="Grid">
            <Rectangle HorizontalAlignment="Stretch" x:Name="Rectangle" VerticalAlignment="Stretch" Width="Auto" Height="Auto" RadiusX="2" RadiusY="2" Fill="#FF414C6F" Stroke="#FFFFFFFF" />
          </Grid>
          <ControlTemplate.Triggers>
            <Trigger Property="IsFocused" Value="True" />
            <Trigger Property="IsMouseOver" Value="True" />
            <Trigger Property="IsEnabled" Value="False" />
            <Trigger Property="IsDragging" Value="True" />
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <!-- ScrollRepeatButton Style - This RepeatButton is used above and below the Thumb in the Scrollbar. They are set to transparent si that they do not show over the scrollbar -->
  <Style x:Key="ScrollRepeatButtonStyle" TargetType="{x:Type RepeatButton}">
    <Setter Property="Background" Value="Transparent" />
    <Setter Property="BorderBrush" Value="Transparent" />
    <Setter Property="IsTabStop" Value="false" />
    <Setter Property="Focusable" Value="false" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type RepeatButton}">
          <Grid>
            <Rectangle Fill="{TemplateBinding Background}" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding BorderThickness}" />
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <!-- ScrollBar  This makes use of Thumb, RepeatButton and ScrollRepeatButton -->
  <Style TargetType="{x:Type ScrollBar}">
    <Setter Property="Stylus.IsFlicksEnabled" Value="false" />
    <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type ScrollBar}">
          <Grid x:Name="GridRoot" Width="{DynamicResource {x:Static SystemParameters.VerticalScrollBarWidthKey}}">
            <Grid.RowDefinitions>
              <RowDefinition MaxHeight="18" />
              <RowDefinition Height="0.00001*" />
              <RowDefinition MaxHeight="18" />
            </Grid.RowDefinitions>

            <RepeatButton x:Name="DecreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineUpCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
              <Grid>
                <Path x:Name="DecreaseArrow" StrokeThickness="1" Data="M 0 4 L 8 4 L 4 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FF414C6F" Margin="0.75,0,-0.757,0" />
              </Grid>
            </RepeatButton>

            <!-- Track is a special layout container which sizes the thumb and the repeat button which do jump scrolling either side of it -->
            <Track Grid.Row="1" x:Name="PART_Track" Orientation="Vertical" IsDirectionReversed="true">
              <Track.Thumb>
                <Thumb Style="{DynamicResource ThumbStyle}" Width="10" />
              </Track.Thumb>
              <Track.IncreaseRepeatButton>
                <RepeatButton x:Name="PageUp" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageDownCommand" />
              </Track.IncreaseRepeatButton>
              <Track.DecreaseRepeatButton>
                <RepeatButton x:Name="PageDown" Style="{DynamicResource ScrollRepeatButtonStyle}" Command="ScrollBar.PageUpCommand" />
              </Track.DecreaseRepeatButton>
            </Track>

            <RepeatButton Grid.Row="2" x:Name="IncreaseRepeat" Style="{DynamicResource RepeatButtonStyle}" Command="ScrollBar.LineDownCommand" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0,0,0,0">
              <Grid>
                <Path x:Name="IncreaseArrow" StrokeThickness="1" Data="M 0 0 L 4 4 L 8 0 Z" RenderTransformOrigin="0.5,0.5" Stroke="#FF414C6F" Margin="0.75,0,-0.757,0" />
              </Grid>
            </RepeatButton>
          </Grid>

          <!-- This uses a single template for ScrollBar and rotate it to be Horizontal
					It also changes the commands so that the it does Left and Right instead of Up and Down Commands -->
          <ControlTemplate.Triggers>
            <Trigger Property="Orientation" Value="Horizontal">

              <!-- Rotate the ScrollBar from Vertical to Horizontal -->
              <Setter Property="LayoutTransform" TargetName="GridRoot">
                <Setter.Value>
                  <RotateTransform Angle="-90" />
                </Setter.Value>
              </Setter>

              <!-- Track is bound to Orientation internally, so we need to rotate it back to Vertical -->
              <Setter TargetName="PART_Track" Property="Orientation" Value="Vertical" />

              <!-- Change the commands to do Horizontal commands -->
              <Setter Property="Command" Value="ScrollBar.LineLeftCommand" TargetName="DecreaseRepeat" />
              <Setter Property="Command" Value="ScrollBar.LineRightCommand" TargetName="IncreaseRepeat" />
              <Setter Property="Command" Value="ScrollBar.PageLeftCommand" TargetName="PageDown" />
              <Setter Property="Command" Value="ScrollBar.PageRightCommand" TargetName="PageUp" />
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <!-- Main Menu - This template uses a StackPanel to layout MenuItems -->
  <Style x:Key="MenuStyle" TargetType="{x:Type Menu}">
    <Setter Property="Background" Value="{x:Null}" />
    <Setter Property="BorderBrush" Value="{DynamicResource ButtonBorderBrush}" />
    <Setter Property="SnapsToDevicePixels" Value="True" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type Menu}">
          <Grid>
            <Border Margin="1" x:Name="Border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" />
            <StackPanel Background="{TemplateBinding Background}" IsItemsHost="True" ClipToBounds="True" Orientation="Horizontal" />
          </Grid>
          <ControlTemplate.Triggers>
            <Trigger Property="IsEnabled" Value="False">
              <Setter Property="Background" Value="{DynamicResource DisabledBackgroundBrush}" TargetName="Border" />
              <Setter Property="BorderBrush" Value="{DynamicResource DisabledBorderBrush}" TargetName="Border" />
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <!-- MenuItem - The template uses triggers to provide four different arrangements of menu item which are set via the Role property -->
  <Style x:Key="MenuItemStyle" TargetType="{x:Type MenuItem}">
    <Setter Property="HorizontalContentAlignment" Value="{Binding Path=HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
    <Setter Property="VerticalContentAlignment" Value="{Binding Path=VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}" />
    <Setter Property="Background" Value="Transparent" />
    <Setter Property="Foreground" Value="{DynamicResource FontColor}" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type MenuItem}">
          <Border x:Name="Border" Background="{TemplateBinding Background}" BorderBrush="{x:Null}" BorderThickness="1,1,1,1" CornerRadius="3,3,3,3" Margin="0,0,10,0">
            <Grid>

              <!-- The Grid is used to hold together columns for an Content and Arrow to show the next level
							 Size sharing is used in Grid so that the Icon, Content, Arrow for each MenuItem align together -->
              <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="14" />
              </Grid.ColumnDefinitions>

              <!-- Content for the menu text etc -->
              <ContentPresenter Margin="{TemplateBinding Padding}" x:Name="HeaderHost" RecognizesAccessKey="True" ContentSource="Header" />

              <!-- Arrow drawn path which points to the next level of the menu -->
              <Grid Grid.Column="1" Margin="0,0,6,0" x:Name="ArrowPanel" VerticalAlignment="Center">
                <Path x:Name="ArrowPanelPath" Fill="{TemplateBinding Foreground}" VerticalAlignment="Center" Data="M-1.0089707E-11,0.0050000012 L8.03125,-3.5155176E-24 3.9995833,4.095 z" Height="4.095" />
              </Grid>

              <!-- The Popup is the body of the menu which expands down or across depending on the level of the item -->
              <Popup IsOpen="{Binding Path=IsSubmenuOpen, RelativeSource={RelativeSource TemplatedParent}}" Placement="Bottom" x:Name="SubMenuPopup" Focusable="false" AllowsTransparency="true" VerticalOffset="0" PopupAnimation="Slide">
                <Grid x:Name="SubMenu">
                  <Border x:Name="SubMenuBorder" Background="{DynamicResource PopupMenuBackgroundBrush}" BorderBrush="{DynamicResource SolidBorderBrush}" BorderThickness="1" />
                  <!-- StackPanel holds children of the menu. This is set bu IsItemsHost=True -->
                  <StackPanel IsItemsHost="True" KeyboardNavigation.DirectionalNavigation="Cycle" />
                </Grid>
              </Popup>

            </Grid>
          </Border>

          <!-- These triggers re-configure the four arrangements of MenuItem to show different levels of menu via Role -->
          <ControlTemplate.Triggers>

            <!-- Role = TopLevelHeader : this is the root menu item in a menu; the Popup expands down -->
            <Trigger Property="Role" Value="TopLevelHeader">
              <Setter Property="Margin" Value="0,1,0,1" />
              <Setter Property="Padding" Value="6,3,6,3" />
              <Setter Property="Placement" Value="Bottom" TargetName="SubMenuPopup" />
            </Trigger>

            <!-- Role = TopLevelItem :  this is a child menu item from the top level without any child items-->
            <Trigger Property="Role" Value="TopLevelItem">
              <Setter Property="Margin" Value="0,1,0,1" />
              <Setter Property="Padding" Value="6,3,6,3" />
              <Setter Property="Visibility" Value="Collapsed" TargetName="ArrowPanel" />
            </Trigger>

            <!-- Role = SubMenuHeader : this is a child menu item which does not have children -->
            <Trigger Property="Role" Value="SubmenuHeader">
              <Setter Property="DockPanel.Dock" Value="Top" />
              <Setter Property="Padding" Value="0,2,0,2" />
              <Setter Property="Grid.IsSharedSizeScope" Value="true" />
            </Trigger>

            <!-- Role = SubMenuItem : this is a child menu item which has children-->
            <Trigger Property="Role" Value="SubmenuItem">
              <Setter Property="DockPanel.Dock" Value="Top" />
              <Setter Property="Padding" Value="0,2,0,2" />
              <Setter Property="Visibility" Value="Collapsed" TargetName="ArrowPanel" />
            </Trigger>
            <Trigger Property="IsSuspendingPopupAnimation" Value="true">
              <Setter Property="PopupAnimation" Value="None" TargetName="SubMenuPopup" />
            </Trigger>

            <Trigger Property="AllowsTransparency" SourceName="SubMenuPopup" Value="true">
              <Setter Property="Margin" Value="0,0,3,3" TargetName="SubMenu" />
              <Setter Property="SnapsToDevicePixels" Value="true" TargetName="SubMenu" />
              <Setter Property="BitmapEffect" Value="{DynamicResource PopupDropShadow}" TargetName="SubMenuBorder" />
            </Trigger>

            <!-- Using the system colors for the Menu Highlight and IsEnabled-->
            <Trigger Property="IsHighlighted" Value="true">
              <Setter Property="Background" TargetName="Border" Value="{DynamicResource MenuIsHighlightedBrush}" />
              <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.HighlightTextBrushKey}}" />
              <Setter Property="BorderBrush" TargetName="Border" Value="#FF000000" />
            </Trigger>

            <Trigger Property="IsKeyboardFocused" Value="true">
              <Setter Property="Background" TargetName="Border" Value="{DynamicResource MenuPressedBrush}" />
            </Trigger>

            <Trigger Property="IsPressed" Value="true">
              <Setter Property="Background" TargetName="Border" Value="{DynamicResource MenuPressedBrush}" />
            </Trigger>

            <Trigger Property="IsEnabled" Value="false">
              <Setter Property="Foreground" Value="{DynamicResource DisabledMenuForegroundBrush}" />
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <!-- Converter for displaying the "primary" photo text -->
  <local:PrimaryAvatarConverter x:Key="PrimaryAvatarConverter" />


  <!-- Converter for formatting dates to short date format -->
  <local:DateFormattingConverter x:Key="DateFormattingConverter" />

  <!-- Converter for avatar -->
  <local:ComposingConverter x:Key="ComposingConverter">
    <local:ComposingConverter.Converters>
      <local:NotConverter />
      <local:BoolToVisibilityConverter />
    </local:ComposingConverter.Converters>
  </local:ComposingConverter>

  <!-- This is the style for the photo in the list of photos on the PersonInfo control -->
  <DataTemplate DataType="{x:Type Microsoft.FamilyShowLib:Photo}">
    <Grid>
      <Border VerticalAlignment="Center" HorizontalAlignment="Center" Margin="2" DockPanel.Dock="Top">
        <Image Source="{Binding FullyQualifiedPath, Converter={StaticResource ImageConverter}}" Stretch="UniformToFill" MaxHeight="65" MaxWidth="65" MinHeight="65" MinWidth="65" />
      </Border>
      <TextBlock Text="{Binding IsAvatar, Converter={StaticResource PrimaryAvatarConverter}}" DockPanel.Dock="Bottom" Foreground="#FF000000" HorizontalAlignment="Right" Margin="0,-10,5,0" VerticalAlignment="Top" FontSize="36" FontWeight="Bold" />
    </Grid>
  </DataTemplate>

  <!-- TagsList ItemTemplate-->
  <DataTemplate x:Key="TagsItemTemplate">
    <TextBlock Text="{Binding}" Foreground="{StaticResource FontColor}" />
  </DataTemplate>

  <!-- Pens used to draw connector lines -->
  <Pen x:Key="ChildConnectionPen" Brush="#80A9A9A9" Thickness="1" />
  <Pen x:Key="MarriedConnectionPen" Brush="#FF90C090" Thickness="2" />
  <Pen x:Key="FormerConnectionPen" Brush="#ff90c090" Thickness="2" DashStyle="{x:Static DashStyles.Dash}" />

  <!-- Text used to draw connector text (marriage date) -->
  <Color x:Key="ConnectionTextColor">#FF1F3066</Color>
  <FontFamily x:Key="ConnectionTextFont">Calibri</FontFamily>
  <System:Double x:Key="ConnectionTextSize">12</System:Double>

  <Color x:Key="PrimaryColor">#FF2466C7</Color>
  <Color x:Key="PrimaryStarColor">#FFF18C54</Color>
  <Color x:Key="PrimaryHoverColor">#FF13A8EC</Color>
  <Color x:Key="RelatedColor">#FF2466C7</Color>
  <Color x:Key="RelatedHoverColor">#FF13A8EC</Color>
  <Color x:Key="SpouseColor">#FFD95736</Color>
  <Color x:Key="SpouseHoverColor">#FFFD6944</Color>
  <Color x:Key="SiblingColor">#FF4B5387</Color>
  <Color x:Key="SiblingHoverColor">#FF8E9CF3</Color>
  <Color x:Key="SiblingLeftColor">#FFD95736</Color>
  <Color x:Key="SiblingLeftHoverColor">#FFFD6944</Color>
  <Color x:Key="SiblingRightColor">#FF4B5387</Color>
  <Color x:Key="SiblingRightHoverColor">#FF8E9CF3</Color>

  <SolidColorBrush x:Key="PrimaryStarBrush" Color="{DynamicResource PrimaryStarColor}" />

  <!-- Female primary brushes -->
  <SolidColorBrush x:Key="FemalePrimaryLivingFill" Color="{DynamicResource PrimaryColor}" />
  <SolidColorBrush x:Key="FemalePrimaryLivingHoverFill" Color="{DynamicResource PrimaryHoverColor}" />
  <SolidColorBrush x:Key="FemalePrimaryDeceasedStroke" Color="{DynamicResource PrimaryColor}" />
  <SolidColorBrush x:Key="FemalePrimaryDeceasedFill" Color="{DynamicResource RelatedHoverColor}" Opacity="0.25" />
  <SolidColorBrush x:Key="FemalePrimaryDeceasedHoverFill" Color="{DynamicResource PrimaryHoverColor}" Opacity="0.50" />

  <!-- Female related brushes -->
  <SolidColorBrush x:Key="FemaleRelatedLivingFill" Color="{DynamicResource RelatedColor}" />
  <SolidColorBrush x:Key="FemaleRelatedLivingHoverFill" Color="{DynamicResource RelatedHoverColor}" />
  <SolidColorBrush x:Key="FemaleRelatedDeceasedStroke" Color="{DynamicResource RelatedColor}" />
  <SolidColorBrush x:Key="FemaleRelatedDeceasedHoverFill" Color="{DynamicResource RelatedHoverColor}" Opacity="0.50" />

  <!-- Female spouse brushes -->
  <SolidColorBrush x:Key="FemaleSpouseLivingFill" Color="{DynamicResource SpouseColor}" />
  <SolidColorBrush x:Key="FemaleSpouseLivingHoverFill" Color="{DynamicResource SpouseHoverColor}" />
  <SolidColorBrush x:Key="FemaleSpouseDeceasedStroke" Color="{DynamicResource SpouseColor}" />
  <SolidColorBrush x:Key="FemaleSpouseDeceasedHoverFill" Color="{DynamicResource SpouseHoverColor}" Opacity="0.50" />

  <!-- Female sibling brushes -->
  <SolidColorBrush x:Key="FemaleSiblingLivingFill" Color="{DynamicResource SiblingColor}" />
  <SolidColorBrush x:Key="FemaleSiblingLivingHoverFill" Color="{DynamicResource SiblingHoverColor}" />
  <SolidColorBrush x:Key="FemaleSiblingDeceasedStroke" Color="{DynamicResource SiblingColor}" />
  <SolidColorBrush x:Key="FemaleSiblingDeceasedHoverFill" Color="{DynamicResource SiblingHoverColor}" Opacity="0.50" />

  <!-- Female sibling left brushes -->
  <LinearGradientBrush x:Key="FemaleSiblingLeftLivingFill" EndPoint="1,0.5" StartPoint="0,0.5">
    <GradientStop Color="#FFD95736" Offset="0.019" />
    <GradientStop Color="#FF4B5387" Offset="0.51" />
    <GradientStop Color="#FFD95736" Offset="0.5" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="FemaleSiblingLeftLivingHoverFill" EndPoint="1,0.5" StartPoint="0,0.5">
    <GradientStop Color="#FFFD6944" Offset="0.019" />
    <GradientStop Color="#FF8E9CF3" Offset="0.51" />
    <GradientStop Color="#FFFD6944" Offset="0.5" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="FemaleSiblingLeftDeceasedStroke" EndPoint="1,0.5" StartPoint="0,0.5">
    <GradientStop Color="#FFD95736" Offset="0.486" />
    <GradientStop Color="#FF4B5387" Offset="0.514" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="FemaleSiblingLeftDeceasedHoverFill" EndPoint="1,0.5" StartPoint="0,0.5" Opacity="0.50">
    <GradientStop Color="#FFFD6944" Offset="0.019" />
    <GradientStop Color="#FF8E9CF3" Offset="0.51" />
    <GradientStop Color="#FFFD6944" Offset="0.5" />
  </LinearGradientBrush>

  <!-- Female sibling right brushes -->
  <LinearGradientBrush x:Key="FemaleSiblingRightLivingFill" EndPoint="1,0.5" StartPoint="0,0.5">
    <GradientStop Color="#FF4B5387" Offset="0.019" />
    <GradientStop Color="#FFD95736" Offset="0.51" />
    <GradientStop Color="#FF4B5387" Offset="0.5" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="FemaleSiblingRightLivingHoverFill" EndPoint="1,0.5" StartPoint="0,0.5">
    <GradientStop Color="#FF8E9CF3" Offset="0.019" />
    <GradientStop Color="#FFFD6944" Offset="0.51" />
    <GradientStop Color="#FF8E9CF3" Offset="0.5" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="FemaleSiblingRightDeceasedStroke" EndPoint="1,0.5" StartPoint="0,0.5">
    <GradientStop Color="#FF4B5387" Offset="0.486" />
    <GradientStop Color="#FFD95736" Offset="0.514" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="FemaleSiblingRightDeceasedHoverFill" EndPoint="1,0.5" StartPoint="0,0.5" Opacity="0.50">
    <GradientStop Color="#FF8E9CF3" Offset="0.019" />
    <GradientStop Color="#FFFD6944" Offset="0.51" />
    <GradientStop Color="#FF8E9CF3" Offset="0.5" />
  </LinearGradientBrush>

  <!-- Male primary brushes -->
  <SolidColorBrush x:Key="MalePrimaryLivingFill" Color="{DynamicResource RelatedColor}" />
  <SolidColorBrush x:Key="MalePrimaryLivingHoverFill" Color="{DynamicResource RelatedHoverColor}" />
  <SolidColorBrush x:Key="MalePrimaryDeceasedStroke" Color="{DynamicResource RelatedColor}" />
  <SolidColorBrush x:Key="MalePrimaryDeceasedFill" Color="{DynamicResource RelatedHoverColor}" Opacity="0.25" />
  <SolidColorBrush x:Key="MalePrimaryDeceasedHoverFill" Color="{DynamicResource RelatedHoverColor}" Opacity="0.50" />

  <!-- Male related brushes -->
  <SolidColorBrush x:Key="MaleRelatedLivingFill" Color="{DynamicResource RelatedColor}" />
  <SolidColorBrush x:Key="MaleRelatedLivingHoverFill" Color="{DynamicResource RelatedHoverColor}" />
  <SolidColorBrush x:Key="MaleRelatedDeceasedStroke" Color="{DynamicResource RelatedColor}" />
  <SolidColorBrush x:Key="MaleRelatedDeceasedHoverFill" Color="{DynamicResource RelatedHoverColor}" Opacity="0.50" />

  <!-- Male spouse brushes -->
  <SolidColorBrush x:Key="MaleSpouseLivingFill" Color="{DynamicResource SpouseColor}" />
  <SolidColorBrush x:Key="MaleSpouseLivingHoverFill" Color="{DynamicResource SpouseHoverColor}" />
  <SolidColorBrush x:Key="MaleSpouseDeceasedStroke" Color="{DynamicResource SpouseColor}" />
  <SolidColorBrush x:Key="MaleSpouseDeceasedHoverFill" Color="{DynamicResource SpouseHoverColor}" Opacity="0.50" />

  <!-- Male sibling brushes -->
  <SolidColorBrush x:Key="MaleSiblingLivingFill" Color="{DynamicResource SiblingColor}" />
  <SolidColorBrush x:Key="MaleSiblingLivingHoverFill" Color="{DynamicResource SiblingHoverColor}" />
  <SolidColorBrush x:Key="MaleSiblingDeceasedStroke" Color="{DynamicResource SiblingColor}" />
  <SolidColorBrush x:Key="MaleSiblingDeceasedHoverFill" Color="{DynamicResource SiblingHoverColor}" Opacity="0.50" />

  <!-- Male sibling left brushes -->
  <LinearGradientBrush x:Key="MaleSiblingLeftLivingFill" EndPoint="1,0.5" StartPoint="0,0.5">
    <GradientStop Color="#FFD95736" Offset="0" />
    <GradientStop Color="#FF4B5387" Offset="1" />
    <GradientStop Color="#FF4B5387" Offset="0.505" />
    <GradientStop Color="#FFD95736" Offset="0.5" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="MaleSiblingLeftLivingHoverFill" EndPoint="1,0.5" StartPoint="0,0.5">
    <GradientStop Color="#FFFD6944" Offset="0" />
    <GradientStop Color="#FF8E9CF3" Offset="1" />
    <GradientStop Color="#FF8E9CF3" Offset="0.505" />
    <GradientStop Color="#FFFD6944" Offset="0.5" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="MaleSiblingLeftDeceasedStroke" EndPoint="1,0.5" StartPoint="0,0.5">
    <GradientStop Color="#FFD95736" Offset="0.481" />
    <GradientStop Color="#FF4B5387" Offset="0.51" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="MaleSiblingLeftDeceasedHoverFill" EndPoint="1,0.5" StartPoint="0,0.5" Opacity="0.50">
    <GradientStop Color="#FFFD6944" Offset="0" />
    <GradientStop Color="#FF8E9CF3" Offset="1" />
    <GradientStop Color="#FF8E9CF3" Offset="0.505" />
    <GradientStop Color="#FFFD6944" Offset="0.5" />
  </LinearGradientBrush>

  <!-- Male sibling right brushes -->
  <LinearGradientBrush x:Key="MaleSiblingRightLivingFill" EndPoint="1,0.5" StartPoint="0,0.5">
    <GradientStop Color="#FF4B5387" Offset="0" />
    <GradientStop Color="#FFD95736" Offset="1" />
    <GradientStop Color="#FFD95736" Offset="0.505" />
    <GradientStop Color="#FF4B5387" Offset="0.5" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="MaleSiblingRightLivingHoverFill" EndPoint="1,0.5" StartPoint="0,0.5">
    <GradientStop Color="#FF8E9CF3" Offset="0" />
    <GradientStop Color="#FFFD6944" Offset="1" />
    <GradientStop Color="#FFFD6944" Offset="0.505" />
    <GradientStop Color="#FF8E9CF3" Offset="0.5" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="MaleSiblingRightDeceasedStroke" EndPoint="1,0.5" StartPoint="0,0.5">
    <GradientStop Color="#FF4B5387" Offset="0.481" />
    <GradientStop Color="#FFD95736" Offset="0.51" />
  </LinearGradientBrush>
  <LinearGradientBrush x:Key="MaleSiblingRightDeceasedHoverFill" EndPoint="1,0.5" StartPoint="0,0.5" Opacity="0.50">
    <GradientStop Color="#FF8E9CF3" Offset="0" />
    <GradientStop Color="#FFFD6944" Offset="1" />
    <GradientStop Color="#FFFD6944" Offset="0.505" />
    <GradientStop Color="#FF8E9CF3" Offset="0.5" />
  </LinearGradientBrush>


  <!-- Spouse group indicator spouse -->
  <SolidColorBrush x:Key="SpouseGroupFill" Color="{DynamicResource SpouseColor}" />
  <LinearGradientBrush x:Key="SpouseGroupStroke" EndPoint="1,0.5" StartPoint="0,0.5">
    <GradientStop Color="#00000000" Offset="0.043" />
    <GradientStop Color="{DynamicResource SpouseColor}" Offset="0.524" />
    <GradientStop Color="#00000000" Offset="0.519" />
  </LinearGradientBrush>

  <!-- Sibling group indicator spouse -->
  <SolidColorBrush x:Key="SiblingGroupFill" Color="{DynamicResource SiblingColor}" />
  <LinearGradientBrush x:Key="SiblingGroupStroke" EndPoint="1,0.5" StartPoint="0,0.5">
    <GradientStop Color="#00000000" Offset="0.043" />
    <GradientStop Color="{DynamicResource SiblingColor}" Offset="0.524" />
    <GradientStop Color="#00000000" Offset="0.519" />
  </LinearGradientBrush>

  <!-- Sibling left group indicator spouse -->
  <SolidColorBrush x:Key="SiblingLeftGroupFill" Color="{DynamicResource SiblingColor}" />
  <LinearGradientBrush x:Key="SiblingLeftGroupStroke" EndPoint="1,0.5" StartPoint="0,0.5">
    <GradientStop Color="#00000000" Offset="0.043" />
    <GradientStop Color="{DynamicResource SiblingColor}" Offset="0.524" />
    <GradientStop Color="#00000000" Offset="0.519" />
  </LinearGradientBrush>

  <!-- Sibling right group indicator spouse -->
  <SolidColorBrush x:Key="SiblingRightGroupFill" Color="{DynamicResource SiblingColor}" />
  <LinearGradientBrush x:Key="SiblingRightGroupStroke" EndPoint="1,0.5" StartPoint="0,0.5">
    <GradientStop Color="#00000000" Offset="0.043" />
    <GradientStop Color="{DynamicResource SiblingColor}" Offset="0.524" />
    <GradientStop Color="#00000000" Offset="0.519" />
  </LinearGradientBrush>

  <SolidColorBrush x:Key="DiagramToolTipBackgroundBrush" Color="#FF323F56" />

  <!-- ToolTip -->
  <Style x:Key="DiagramToolTip" TargetType="ToolTip">
    <Setter Property="OverridesDefaultStyle" Value="true" />
    <Setter Property="HasDropShadow" Value="True" />
    <Setter Property="Foreground" Value="#FFFFFFFF" />
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="ToolTip">
          <Border Name="Border" Background="{DynamicResource DiagramToolTipBackgroundBrush}" BorderBrush="#FFFFFFFF" BorderThickness="1,1,1,1" CornerRadius="10,10,10,10">
            <DockPanel>
              <StackPanel Margin="0,0,5,10">
                <Border BorderBrush="#02747474" Background="#02000000" HorizontalAlignment="Center" Margin="10,5,10,0" VerticalAlignment="Top" BorderThickness="1,1,1,1" x:Name="AvatarPhotoBorder">
                  <Border.BitmapEffect>
                    <DropShadowBitmapEffect ShadowDepth="7" Softness="0.75" />
                  </Border.BitmapEffect>
                  <Image x:Name="Avatar" Source="{Binding Path=Person.Avatar, Converter={StaticResource ImageConverter}, Mode=OneWay}" Stretch="Uniform" VerticalAlignment="Top" MaxWidth="90" MaxHeight="85" HorizontalAlignment="Left" StretchDirection="DownOnly" />
                </Border>
                <Border x:Name="NoPhotoBorder" Visibility="{Binding Path=Person.HasAvatar, Converter={StaticResource ComposingConverter}, Mode=Default}" BorderBrush="#FFFFFFFF" Background="#02FFFFFF" Margin="10,5,10,0">
                  <Rectangle Fill="{DynamicResource NoPhotoBrush}" Stroke="{x:Null}" Width="70" Height="85" x:Name="NoPhotoRectangle">
                    <Rectangle.BitmapEffect>
                      <DropShadowBitmapEffect ShadowDepth="7" Softness="0.75" />
                    </Rectangle.BitmapEffect>
                  </Rectangle>
                </Border>
              </StackPanel>
              <StackPanel MaxWidth="170" Margin="0,0,5,10">
                <ContentPresenter Margin="0,10,10,5" />
                <TextBlock TextWrapping="Wrap" x:Name="ParentsDatePanel" Margin="0,0,0,5">
                  <Run local:BindableExtender.BindableText="{Binding Path=Person.ParentRelationshipText}" />
                  <Run Text=" of " />
                  <Run local:BindableExtender.BindableText="{Binding Path=Person.ParentsText}" />
                </TextBlock>
                <TextBlock TextWrapping="Wrap" LineHeight="10" x:Name="SiblingsDatePanel" Margin="0,0,0,5">
                  <Run local:BindableExtender.BindableText="{Binding Path=Person.SiblingRelationshipText}" />
                  <Run Text=" to " />
                  <Run local:BindableExtender.BindableText="{Binding Path=Person.SiblingsText}" />
                </TextBlock>
                <TextBlock TextWrapping="Wrap" x:Name="SpousesDatePanel" Margin="0,0,0,5">
                  <Run local:BindableExtender.BindableText="{Binding Path=Person.SpouseRelationshipText}" />
                  <Run Text=" to " />
                  <Run local:BindableExtender.BindableText="{Binding Path=Person.SpousesText}" />
                </TextBlock>
                <TextBlock TextWrapping="Wrap" x:Name="ChildrenDatePanel" Margin="0,0,0,5">
                  <Run local:BindableExtender.BindableText="{Binding Path=Person.ChildRelationshipText}" />
                  <Run Text=" to " />
                  <Run local:BindableExtender.BindableText="{Binding Path=Person.ChildrenText}" />
                </TextBlock>
              </StackPanel>
            </DockPanel>
          </Border>
          <ControlTemplate.Triggers>
            <Trigger Property="HasDropShadow" Value="true">
              <Setter TargetName="Border" Property="CornerRadius" Value="4" />
              <Setter TargetName="Border" Property="SnapsToDevicePixels" Value="true" />
            </Trigger>
            <DataTrigger Binding="{Binding Path=Person.Parents.Count}" Value="0">
              <Setter TargetName="ParentsDatePanel" Property="Visibility" Value="Collapsed" />
            </DataTrigger>
            <DataTrigger Binding="{Binding Path=Person.Siblings.Count}" Value="0">
              <Setter TargetName="SiblingsDatePanel" Property="Visibility" Value="Collapsed" />
            </DataTrigger>
            <DataTrigger Binding="{Binding Path=Person.Spouses.Count}" Value="0">
              <Setter TargetName="SpousesDatePanel" Property="Visibility" Value="Collapsed" />
            </DataTrigger>
            <DataTrigger Binding="{Binding Path=Person.Children.Count}" Value="0">
              <Setter TargetName="ChildrenDatePanel" Property="Visibility" Value="Collapsed" />
            </DataTrigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <!-- Female node -->
  <ControlTemplate x:Key="FemaleNodeTemplate" TargetType="{x:Type local:DiagramNode}">
    <StackPanel Cursor="Hand" ToolTipService.InitialShowDelay="300">
      <StackPanel.ToolTip>
        <ToolTip Style="{DynamicResource DiagramToolTip}" Content="{Binding Path=BottomLabel}" />
      </StackPanel.ToolTip>
      <Canvas Name="Person" Width="56.280762" Height="43.714844">
        <Canvas>
          <Canvas>
            <Path Opacity="0.400000" Fill="#ff000000" Data="F1 M 45.587402,19.937012 C 47.937988,18.466797 51.859863,17.262207 54.343262,17.259277 C 56.829590,17.256348 56.937988,18.455566 54.583496,19.925293 C 52.232910,21.400879 48.313965,22.600586 45.827637,22.603516 C 43.343262,22.606445 43.235840,21.412109 45.587402,19.937012 Z" />
            <Path Opacity="0.400000" Fill="#ff000000" Data="F1 M 26.094238,35.425781 C 26.094238,35.425781 16.417480,41.561523 15.448730,42.169922 C 14.481934,42.775391 15.132324,43.200195 16.057129,43.199219 C 16.974121,43.197266 18.677246,42.769531 19.744629,42.165039 C 20.816895,41.556641 30.785645,35.304688 30.785645,35.304688 L 36.206543,35.298828 C 36.206543,35.298828 42.626465,27.939453 43.489746,27.273438 C 44.348145,26.604492 44.775879,26.847656 44.604004,27.148438 C 44.424316,27.453125 41.319824,31.320313 40.646973,31.807617 C 39.975098,32.291992 41.417480,32.408203 42.525879,32.222656 C 43.635254,32.041992 45.113770,31.436523 45.958496,30.589844 C 46.802246,29.740234 50.750488,25.021484 51.306152,24.415039 C 51.865723,23.806641 51.701660,23.081055 49.960449,23.083984 L 40.348145,23.095703 C 38.608887,23.098633 36.119629,23.826172 34.743652,24.436523 C 33.364746,25.043945 22.260254,29.771484 20.394043,30.622070 C 18.528809,31.470703 18.071777,32.074219 18.600098,32.252930 C 19.126465,32.436523 20.955566,32.316406 21.834473,31.831055 C 22.708496,31.343750 31.947754,27.468750 32.740723,27.163086 C 33.527832,26.861328 34.736816,26.615234 33.468262,27.286133 C 32.196777,27.952148 15.142090,35.324219 15.142090,35.324219 L 20.562012,35.318359 C 20.562012,35.318359 10.591309,41.569336 9.725098,42.177734 C 8.858887,42.781250 9.203613,43.208008 10.124512,43.207031 C 11.044434,43.205078 13.052246,42.776367 14.021973,42.171875 C 14.984863,41.564453 24.868652,35.426758 24.868652,35.426758 L 26.094238,35.425781 Z" />
          </Canvas>
          <Canvas>
            <Path Name="PersonHead" Fill="{Binding Path=NodeFill}" Stroke="{Binding Path=NodeStroke}" Data="F1 M 8.390137,4.499512 C 8.390137,2.016602 10.405762,0.000000 12.890137,0.000000 C 15.375488,0.000000 17.392090,2.016602 17.392090,4.499512 C 17.392090,6.987793 15.375488,9.003906 12.890137,9.003906 C 10.405762,9.003906 8.390137,6.987793 8.390137,4.499512 Z" />
            <Path Name="PersonBody" Fill="{Binding Path=NodeFill}" Stroke="{Binding Path=NodeStroke}" Data="F1 M 13.606934,30.617188 C 13.606934,30.617188 13.708496,40.949219 13.708496,41.975586 C 13.708496,42.999023 15.041504,43.714844 15.958496,43.714844 C 16.879395,43.714844 17.902832,42.999023 18.007324,41.975586 C 18.107910,40.949219 18.107910,30.412109 18.107910,30.412109 L 23.530762,30.412109 C 23.530762,30.412109 18.210449,18.007324 18.007324,16.878906 C 17.800293,15.752441 18.618652,16.167969 18.926270,16.678711 C 19.233887,17.186523 22.301270,23.711914 22.404785,24.530273 C 22.508301,25.348633 24.143066,25.556641 24.961426,25.246094 C 25.779785,24.940430 26.293457,23.915039 25.779785,22.480469 C 25.270020,21.052246 21.688965,13.092773 21.280762,12.074219 C 20.870605,11.050781 19.541504,9.824707 17.800293,9.824707 L 8.183105,9.824707 C 6.443848,9.824707 5.115723,11.050781 4.706543,12.074219 C 4.297363,13.092773 0.716309,21.052246 0.205566,22.480469 C -0.307129,23.915039 0.205566,24.940430 1.022949,25.246094 C 1.839355,25.556641 3.479980,25.348633 3.581543,24.530273 C 3.681152,23.711914 6.752441,17.186523 7.057129,16.678711 C 7.364746,16.167969 8.183105,15.752441 7.980957,16.878906 C 7.773926,18.007324 2.455566,30.412109 2.455566,30.412109 L 7.878418,30.412109 C 7.878418,30.412109 7.878418,40.949219 7.980957,41.975586 C 8.081543,42.999023 9.106934,43.714844 10.024902,43.714844 C 10.948730,43.714844 12.274902,42.999023 12.274902,41.975586 C 12.274902,40.949219 12.378418,30.617188 12.378418,30.617188 L 13.606934,30.617188 Z" />
          </Canvas>

          <!-- group indicator -->
          <Canvas Name="Group" Visibility="Collapsed" Width="23.768" Height="43.533" Canvas.Left="23.875" Canvas.Top="-29.5">
            <Grid RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Left" VerticalAlignment="Top" Canvas.Left="-8.125" Canvas.Top="-1">
              <Grid.RenderTransform>
                <TransformGroup>
                  <ScaleTransform ScaleX="0.25" ScaleY="0.25" />
                  <SkewTransform AngleX="0" AngleY="0" />
                  <RotateTransform Angle="0" />
                  <TranslateTransform X="0" Y="0" />
                </TransformGroup>
              </Grid.RenderTransform>
              <Path x:Name="PersonHead_Copy" Fill="{Binding Path=GroupFill}" Data="F1 M 6.535156,4.492188 C 6.535156,2.011719 8.546875,0.000000 11.029297,0.000000 C 13.509766,0.000000 15.521484,2.011719 15.521484,4.492188 C 15.521484,6.974609 13.509766,8.986328 11.029297,8.986328 C 8.546875,8.986328 6.535156,6.974609 6.535156,4.492188 Z" HorizontalAlignment="Left" VerticalAlignment="Top" Width="23.768" Height="8.986" />
              <Path x:Name="PersonBody_Copy" Fill="{Binding Path=GroupFill}" Data="F1 M 12.050781,25.939453 C 12.050781,25.939453 12.050781,40.164063 12.050781,41.490234 C 12.050781,42.818359 13.990234,43.533203 14.806641,43.533203 C 15.625000,43.533203 17.054688,43.431641 17.054688,41.695313 C 17.054688,39.958984 17.054688,15.521484 17.054688,15.521484 L 18.585938,15.521484 C 18.585938,15.521484 18.585938,23.693359 18.585938,24.917969 C 18.585938,26.144531 19.810547,26.451172 20.525391,26.451172 C 21.240234,26.451172 22.466797,26.349609 22.466797,25.123047 C 22.466797,23.898438 22.160156,16.236328 22.160156,14.195313 C 22.160156,12.152344 20.730469,9.498047 17.257813,9.498047 L 5.207031,9.498047 C 1.736328,9.498047 0.306641,12.152344 0.306641,14.195313 C 0.306641,16.236328 0.000000,23.898438 0.000000,25.123047 C 0.000000,26.349609 1.224609,26.451172 1.939453,26.451172 C 2.654297,26.451172 3.880859,26.144531 3.880859,24.917969 C 3.880859,23.693359 3.880859,15.521484 3.880859,15.521484 L 5.412109,15.521484 C 5.412109,15.521484 5.412109,39.958984 5.412109,41.695313 C 5.412109,43.431641 6.841797,43.533203 7.658203,43.533203 C 8.476563,43.533203 10.416016,42.818359 10.416016,41.490234 C 10.416016,40.164063 10.416016,25.939453 10.416016,25.939453 L 12.050781,25.939453 Z" Margin="0,0.004,0,0" Width="Auto" Height="Auto" />
            </Grid>
            <Grid RenderTransformOrigin="0.5,0.5" Canvas.Left="1.5" Canvas.Top="-1">
              <Grid.RenderTransform>
                <TransformGroup>
                  <ScaleTransform ScaleX="0.25" ScaleY="0.25" />
                  <SkewTransform AngleX="0" AngleY="0" />
                  <RotateTransform Angle="0" />
                  <TranslateTransform X="0" Y="0" />
                </TransformGroup>
              </Grid.RenderTransform>
              <Path x:Name="PersonHead_Copy1" Fill="{Binding Path=GroupFill}" Data="F1 M 6.535156,4.492188 C 6.535156,2.011719 8.546875,0.000000 11.029297,0.000000 C 13.509766,0.000000 15.521484,2.011719 15.521484,4.492188 C 15.521484,6.974609 13.509766,8.986328 11.029297,8.986328 C 8.546875,8.986328 6.535156,6.974609 6.535156,4.492188 Z" HorizontalAlignment="Left" VerticalAlignment="Top" Width="23.768" Height="8.986" />
              <Path x:Name="PersonBody_Copy1" Fill="{Binding Path=GroupFill}" Data="F1 M 12.050781,25.939453 C 12.050781,25.939453 12.050781,40.164063 12.050781,41.490234 C 12.050781,42.818359 13.990234,43.533203 14.806641,43.533203 C 15.625000,43.533203 17.054688,43.431641 17.054688,41.695313 C 17.054688,39.958984 17.054688,15.521484 17.054688,15.521484 L 18.585938,15.521484 C 18.585938,15.521484 18.585938,23.693359 18.585938,24.917969 C 18.585938,26.144531 19.810547,26.451172 20.525391,26.451172 C 21.240234,26.451172 22.466797,26.349609 22.466797,25.123047 C 22.466797,23.898438 22.160156,16.236328 22.160156,14.195313 C 22.160156,12.152344 20.730469,9.498047 17.257813,9.498047 L 5.207031,9.498047 C 1.736328,9.498047 0.306641,12.152344 0.306641,14.195313 C 0.306641,16.236328 0.000000,23.898438 0.000000,25.123047 C 0.000000,26.349609 1.224609,26.451172 1.939453,26.451172 C 2.654297,26.451172 3.880859,26.144531 3.880859,24.917969 C 3.880859,23.693359 3.880859,15.521484 3.880859,15.521484 L 5.412109,15.521484 C 5.412109,15.521484 5.412109,39.958984 5.412109,41.695313 C 5.412109,43.431641 6.841797,43.533203 7.658203,43.533203 C 8.476563,43.533203 10.416016,42.818359 10.416016,41.490234 C 10.416016,40.164063 10.416016,25.939453 10.416016,25.939453 L 12.050781,25.939453 Z" Margin="0,0.004,0,0" Width="Auto" Height="Auto" />
            </Grid>
            <Grid RenderTransformOrigin="0.5,0.5" Canvas.Left="-3.125" Canvas.Top="7.25">
              <Grid.RenderTransform>
                <TransformGroup>
                  <ScaleTransform ScaleX="0.25" ScaleY="0.25" />
                  <SkewTransform AngleX="0" AngleY="0" />
                  <RotateTransform Angle="0" />
                  <TranslateTransform X="0" Y="0" />
                </TransformGroup>
              </Grid.RenderTransform>
              <Path x:Name="PersonHead_Copy2" Fill="{Binding Path=GroupFill}" Data="F1 M 6.535156,4.492188 C 6.535156,2.011719 8.546875,0.000000 11.029297,0.000000 C 13.509766,0.000000 15.521484,2.011719 15.521484,4.492188 C 15.521484,6.974609 13.509766,8.986328 11.029297,8.986328 C 8.546875,8.986328 6.535156,6.974609 6.535156,4.492188 Z" HorizontalAlignment="Left" VerticalAlignment="Top" Width="23.768" Height="8.986" />
              <Path x:Name="PersonBody_Copy2" Fill="{Binding Path=GroupFill}" Data="F1 M 12.050781,25.939453 C 12.050781,25.939453 12.050781,40.164063 12.050781,41.490234 C 12.050781,42.818359 13.990234,43.533203 14.806641,43.533203 C 15.625000,43.533203 17.054688,43.431641 17.054688,41.695313 C 17.054688,39.958984 17.054688,15.521484 17.054688,15.521484 L 18.585938,15.521484 C 18.585938,15.521484 18.585938,23.693359 18.585938,24.917969 C 18.585938,26.144531 19.810547,26.451172 20.525391,26.451172 C 21.240234,26.451172 22.466797,26.349609 22.466797,25.123047 C 22.466797,23.898438 22.160156,16.236328 22.160156,14.195313 C 22.160156,12.152344 20.730469,9.498047 17.257813,9.498047 L 5.207031,9.498047 C 1.736328,9.498047 0.306641,12.152344 0.306641,14.195313 C 0.306641,16.236328 0.000000,23.898438 0.000000,25.123047 C 0.000000,26.349609 1.224609,26.451172 1.939453,26.451172 C 2.654297,26.451172 3.880859,26.144531 3.880859,24.917969 C 3.880859,23.693359 3.880859,15.521484 3.880859,15.521484 L 5.412109,15.521484 C 5.412109,15.521484 5.412109,39.958984 5.412109,41.695313 C 5.412109,43.431641 6.841797,43.533203 7.658203,43.533203 C 8.476563,43.533203 10.416016,42.818359 10.416016,41.490234 C 10.416016,40.164063 10.416016,25.939453 10.416016,25.939453 L 12.050781,25.939453 Z" Margin="0,0.004,0,0" Width="Auto" Height="Auto" />
            </Grid>
            <Ellipse Stroke="{Binding Path=GroupStroke}" RenderTransformOrigin="0.5,0.5" Fill="{x:Null}" Width="49.845" Height="49.845" Canvas.Left="-36.375" Canvas.Top="16.625">
              <Ellipse.RenderTransform>
                <TransformGroup>
                  <ScaleTransform ScaleX="1" ScaleY="1" />
                  <SkewTransform AngleX="0" AngleY="0" />
                  <RotateTransform Angle="-41.157" />
                  <TranslateTransform X="0" Y="0" />
                </TransformGroup>
              </Ellipse.RenderTransform>
            </Ellipse>
          </Canvas>
          <!-- / group indicator -->

        </Canvas>
      </Canvas>
      <Label Content="{Binding Path=BottomLabel}" Padding="0,5,0,0" HorizontalAlignment="Left" TextBlock.TextAlignment="Right" Foreground="{DynamicResource FontColor}" FontSize="9"></Label>
    </StackPanel>
    <ControlTemplate.Triggers>
      <!-- mouse over -->
      <Trigger Property="IsMouseOver" Value="true">
        <Setter Property="Fill" Value="{Binding Path=NodeHoverFill}" TargetName="PersonHead" />
        <Setter Property="Fill" Value="{Binding Path=NodeHoverFill}" TargetName="PersonBody" />
      </Trigger>
    </ControlTemplate.Triggers>
  </ControlTemplate>

  <!-- Male node -->
  <ControlTemplate x:Key="MaleNodeTemplate" TargetType="{x:Type local:DiagramNode}">
    <StackPanel Cursor="Hand" ToolTipService.InitialShowDelay="300">
      <StackPanel.ToolTip>
        <ToolTip Style="{DynamicResource DiagramToolTip}" Content="{Binding Path=BottomLabel}" />
      </StackPanel.ToolTip>
      <Canvas Name="Person" Width="54.767578" Height="43.533203">
        <Canvas>
          <Canvas>
            <Path Opacity="0.400000" Fill="#ff000000" Data="F1 M 44.000977,20.005859 C 46.424805,18.527344 50.398438,17.246094 52.878906,17.143555 C 55.357422,17.041016 55.402344,18.157227 52.981445,19.635742 C 50.557617,21.111328 46.583984,22.395508 44.103516,22.497070 C 41.625000,22.599609 41.579102,21.481445 44.000977,20.005859 Z" />
            <Path Opacity="0.400000" Fill="#ff000000" Data="F1 M 28.572266,32.551758 C 28.572266,32.551758 14.687012,41.024414 13.390137,41.814453 C 12.093262,42.605469 13.334961,42.951172 14.150879,42.916992 C 14.968750,42.883789 16.496094,42.765625 18.191406,41.730469 C 19.886719,40.697266 43.744141,26.140625 43.744141,26.140625 L 45.273438,26.077148 C 45.273438,26.077148 37.294922,30.945313 36.099609,31.673828 C 34.904297,32.406250 35.828125,32.536133 36.541992,32.506836 C 37.255859,32.476563 38.581055,32.367188 39.779297,31.636719 C 40.974609,30.907227 48.146484,26.358398 50.140625,25.139648 C 52.135742,23.923828 53.298828,22.401367 49.831055,22.544922 L 37.791016,23.041016 C 34.320313,23.183594 30.300781,24.823242 28.306641,26.039063 C 26.311523,27.256836 18.526367,31.832031 17.330566,32.560547 C 16.133301,33.291992 17.257324,33.299805 17.971680,33.271484 C 18.686035,33.242188 20.210938,33.010742 21.406738,32.280273 C 22.602051,31.549805 30.580078,26.682617 30.580078,26.682617 L 32.110352,26.620117 C 32.110352,26.620117 8.253906,41.175781 6.558594,42.209961 C 4.863281,43.245117 6.192383,43.245117 7.008301,43.211914 C 7.826172,43.177734 10.461914,42.671875 11.758301,41.882813 C 13.053223,41.091797 26.938965,32.619141 26.938965,32.619141 L 28.572266,32.551758 Z" />
          </Canvas>
          <Canvas>
            <Path Name="PersonHead" Fill="{Binding Path=NodeFill}" Stroke="{Binding Path=NodeStroke}" Data="F1 M 6.535156,4.492188 C 6.535156,2.011719 8.546875,0.000000 11.029297,0.000000 C 13.509766,0.000000 15.521484,2.011719 15.521484,4.492188 C 15.521484,6.974609 13.509766,8.986328 11.029297,8.986328 C 8.546875,8.986328 6.535156,6.974609 6.535156,4.492188 Z" />
            <Path Name="PersonBody" Fill="{Binding Path=NodeFill}" Stroke="{Binding Path=NodeStroke}" Data="F1 M 12.050781,25.939453 C 12.050781,25.939453 12.050781,40.164063 12.050781,41.490234 C 12.050781,42.818359 13.990234,43.533203 14.806641,43.533203 C 15.625000,43.533203 17.054688,43.431641 17.054688,41.695313 C 17.054688,39.958984 17.054688,15.521484 17.054688,15.521484 L 18.585938,15.521484 C 18.585938,15.521484 18.585938,23.693359 18.585938,24.917969 C 18.585938,26.144531 19.810547,26.451172 20.525391,26.451172 C 21.240234,26.451172 22.466797,26.349609 22.466797,25.123047 C 22.466797,23.898438 22.160156,16.236328 22.160156,14.195313 C 22.160156,12.152344 20.730469,9.498047 17.257813,9.498047 L 5.207031,9.498047 C 1.736328,9.498047 0.306641,12.152344 0.306641,14.195313 C 0.306641,16.236328 0.000000,23.898438 0.000000,25.123047 C 0.000000,26.349609 1.224609,26.451172 1.939453,26.451172 C 2.654297,26.451172 3.880859,26.144531 3.880859,24.917969 C 3.880859,23.693359 3.880859,15.521484 3.880859,15.521484 L 5.412109,15.521484 C 5.412109,15.521484 5.412109,39.958984 5.412109,41.695313 C 5.412109,43.431641 6.841797,43.533203 7.658203,43.533203 C 8.476563,43.533203 10.416016,42.818359 10.416016,41.490234 C 10.416016,40.164063 10.416016,25.939453 10.416016,25.939453 L 12.050781,25.939453 Z" />
          </Canvas>

          <!-- group indicator -->
          <Canvas Name="Group" Visibility="Collapsed" Width="23.768" Height="43.533" Canvas.Left="22.375" Canvas.Top="-29.5">
            <Grid RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Left" VerticalAlignment="Top" Canvas.Left="-8.125" Canvas.Top="-1">
              <Grid.RenderTransform>
                <TransformGroup>
                  <ScaleTransform ScaleX="0.25" ScaleY="0.25" />
                  <SkewTransform AngleX="0" AngleY="0" />
                  <RotateTransform Angle="0" />
                  <TranslateTransform X="0" Y="0" />
                </TransformGroup>
              </Grid.RenderTransform>
              <Path x:Name="PersonHead_Copy" Fill="{Binding Path=GroupFill}" Data="F1 M 6.535156,4.492188 C 6.535156,2.011719 8.546875,0.000000 11.029297,0.000000 C 13.509766,0.000000 15.521484,2.011719 15.521484,4.492188 C 15.521484,6.974609 13.509766,8.986328 11.029297,8.986328 C 8.546875,8.986328 6.535156,6.974609 6.535156,4.492188 Z" HorizontalAlignment="Left" VerticalAlignment="Top" Width="23.768" Height="8.986" />
              <Path x:Name="PersonBody_Copy" Fill="{Binding Path=GroupFill}" Data="F1 M 12.050781,25.939453 C 12.050781,25.939453 12.050781,40.164063 12.050781,41.490234 C 12.050781,42.818359 13.990234,43.533203 14.806641,43.533203 C 15.625000,43.533203 17.054688,43.431641 17.054688,41.695313 C 17.054688,39.958984 17.054688,15.521484 17.054688,15.521484 L 18.585938,15.521484 C 18.585938,15.521484 18.585938,23.693359 18.585938,24.917969 C 18.585938,26.144531 19.810547,26.451172 20.525391,26.451172 C 21.240234,26.451172 22.466797,26.349609 22.466797,25.123047 C 22.466797,23.898438 22.160156,16.236328 22.160156,14.195313 C 22.160156,12.152344 20.730469,9.498047 17.257813,9.498047 L 5.207031,9.498047 C 1.736328,9.498047 0.306641,12.152344 0.306641,14.195313 C 0.306641,16.236328 0.000000,23.898438 0.000000,25.123047 C 0.000000,26.349609 1.224609,26.451172 1.939453,26.451172 C 2.654297,26.451172 3.880859,26.144531 3.880859,24.917969 C 3.880859,23.693359 3.880859,15.521484 3.880859,15.521484 L 5.412109,15.521484 C 5.412109,15.521484 5.412109,39.958984 5.412109,41.695313 C 5.412109,43.431641 6.841797,43.533203 7.658203,43.533203 C 8.476563,43.533203 10.416016,42.818359 10.416016,41.490234 C 10.416016,40.164063 10.416016,25.939453 10.416016,25.939453 L 12.050781,25.939453 Z" Margin="0,0.004,0,0" Width="Auto" Height="Auto" />
            </Grid>
            <Grid RenderTransformOrigin="0.5,0.5" Canvas.Left="1.5" Canvas.Top="-1">
              <Grid.RenderTransform>
                <TransformGroup>
                  <ScaleTransform ScaleX="0.25" ScaleY="0.25" />
                  <SkewTransform AngleX="0" AngleY="0" />
                  <RotateTransform Angle="0" />
                  <TranslateTransform X="0" Y="0" />
                </TransformGroup>
              </Grid.RenderTransform>
              <Path x:Name="PersonHead_Copy1" Fill="{Binding Path=GroupFill}" Data="F1 M 6.535156,4.492188 C 6.535156,2.011719 8.546875,0.000000 11.029297,0.000000 C 13.509766,0.000000 15.521484,2.011719 15.521484,4.492188 C 15.521484,6.974609 13.509766,8.986328 11.029297,8.986328 C 8.546875,8.986328 6.535156,6.974609 6.535156,4.492188 Z" HorizontalAlignment="Left" VerticalAlignment="Top" Width="23.768" Height="8.986" />
              <Path x:Name="PersonBody_Copy1" Fill="{Binding Path=GroupFill}" Data="F1 M 12.050781,25.939453 C 12.050781,25.939453 12.050781,40.164063 12.050781,41.490234 C 12.050781,42.818359 13.990234,43.533203 14.806641,43.533203 C 15.625000,43.533203 17.054688,43.431641 17.054688,41.695313 C 17.054688,39.958984 17.054688,15.521484 17.054688,15.521484 L 18.585938,15.521484 C 18.585938,15.521484 18.585938,23.693359 18.585938,24.917969 C 18.585938,26.144531 19.810547,26.451172 20.525391,26.451172 C 21.240234,26.451172 22.466797,26.349609 22.466797,25.123047 C 22.466797,23.898438 22.160156,16.236328 22.160156,14.195313 C 22.160156,12.152344 20.730469,9.498047 17.257813,9.498047 L 5.207031,9.498047 C 1.736328,9.498047 0.306641,12.152344 0.306641,14.195313 C 0.306641,16.236328 0.000000,23.898438 0.000000,25.123047 C 0.000000,26.349609 1.224609,26.451172 1.939453,26.451172 C 2.654297,26.451172 3.880859,26.144531 3.880859,24.917969 C 3.880859,23.693359 3.880859,15.521484 3.880859,15.521484 L 5.412109,15.521484 C 5.412109,15.521484 5.412109,39.958984 5.412109,41.695313 C 5.412109,43.431641 6.841797,43.533203 7.658203,43.533203 C 8.476563,43.533203 10.416016,42.818359 10.416016,41.490234 C 10.416016,40.164063 10.416016,25.939453 10.416016,25.939453 L 12.050781,25.939453 Z" Margin="0,0.004,0,0" Width="Auto" Height="Auto" />
            </Grid>
            <Grid RenderTransformOrigin="0.5,0.5" Canvas.Left="-3.125" Canvas.Top="7.25">
              <Grid.RenderTransform>
                <TransformGroup>
                  <ScaleTransform ScaleX="0.25" ScaleY="0.25" />
                  <SkewTransform AngleX="0" AngleY="0" />
                  <RotateTransform Angle="0" />
                  <TranslateTransform X="0" Y="0" />
                </TransformGroup>
              </Grid.RenderTransform>
              <Path x:Name="PersonHead_Copy2" Fill="{Binding Path=GroupFill}" Data="F1 M 6.535156,4.492188 C 6.535156,2.011719 8.546875,0.000000 11.029297,0.000000 C 13.509766,0.000000 15.521484,2.011719 15.521484,4.492188 C 15.521484,6.974609 13.509766,8.986328 11.029297,8.986328 C 8.546875,8.986328 6.535156,6.974609 6.535156,4.492188 Z" HorizontalAlignment="Left" VerticalAlignment="Top" Width="23.768" Height="8.986" />
              <Path x:Name="PersonBody_Copy2" Fill="{Binding Path=GroupFill}" Data="F1 M 12.050781,25.939453 C 12.050781,25.939453 12.050781,40.164063 12.050781,41.490234 C 12.050781,42.818359 13.990234,43.533203 14.806641,43.533203 C 15.625000,43.533203 17.054688,43.431641 17.054688,41.695313 C 17.054688,39.958984 17.054688,15.521484 17.054688,15.521484 L 18.585938,15.521484 C 18.585938,15.521484 18.585938,23.693359 18.585938,24.917969 C 18.585938,26.144531 19.810547,26.451172 20.525391,26.451172 C 21.240234,26.451172 22.466797,26.349609 22.466797,25.123047 C 22.466797,23.898438 22.160156,16.236328 22.160156,14.195313 C 22.160156,12.152344 20.730469,9.498047 17.257813,9.498047 L 5.207031,9.498047 C 1.736328,9.498047 0.306641,12.152344 0.306641,14.195313 C 0.306641,16.236328 0.000000,23.898438 0.000000,25.123047 C 0.000000,26.349609 1.224609,26.451172 1.939453,26.451172 C 2.654297,26.451172 3.880859,26.144531 3.880859,24.917969 C 3.880859,23.693359 3.880859,15.521484 3.880859,15.521484 L 5.412109,15.521484 C 5.412109,15.521484 5.412109,39.958984 5.412109,41.695313 C 5.412109,43.431641 6.841797,43.533203 7.658203,43.533203 C 8.476563,43.533203 10.416016,42.818359 10.416016,41.490234 C 10.416016,40.164063 10.416016,25.939453 10.416016,25.939453 L 12.050781,25.939453 Z" Margin="0,0.004,0,0" Width="Auto" Height="Auto" />
            </Grid>
            <Ellipse RenderTransformOrigin="0.5,0.5" Stroke="{Binding Path=GroupStroke}" Fill="{x:Null}" Width="49.845" Height="49.845" Canvas.Left="-36.375" Canvas.Top="16.625">
              <Ellipse.RenderTransform>
                <TransformGroup>
                  <ScaleTransform ScaleX="1" ScaleY="1" />
                  <SkewTransform AngleX="0" AngleY="0" />
                  <RotateTransform Angle="-41.157" />
                  <TranslateTransform X="0" Y="0" />
                </TransformGroup>
              </Ellipse.RenderTransform>
            </Ellipse>
          </Canvas>
          <!-- / group indicator -->

        </Canvas>
      </Canvas>
      <Label Padding="0,5,0,0" Content="{Binding Path=BottomLabel}" HorizontalAlignment="Left" TextBlock.TextAlignment="Right" Foreground="{DynamicResource FontColor}" FontSize="9"></Label>
    </StackPanel>
    <ControlTemplate.Triggers>
      <Trigger Property="IsMouseOver" Value="true">
        <Setter Property="Fill" Value="{Binding Path=NodeHoverFill}" TargetName="PersonHead" />
        <Setter Property="Fill" Value="{Binding Path=NodeHoverFill}" TargetName="PersonBody" />
      </Trigger>
    </ControlTemplate.Triggers>
  </ControlTemplate>

  <!-- Female primary node -->
  <ControlTemplate x:Key="FemalePrimaryNodeTemplate" TargetType="{x:Type local:DiagramNode}">
    <StackPanel ToolTipService.InitialShowDelay="300">
      <StackPanel.ToolTip>
        <ToolTip Style="{DynamicResource DiagramToolTip}" Content="{Binding Path=BottomLabel}" />
      </StackPanel.ToolTip>
      <Canvas x:Name="Person" Width="88" Height="56">
        <Canvas>
          <Path x:Name="Star" StrokeThickness="2" StrokeMiterLimit="2.75" Stroke="#FFFFFFFF" Fill="{DynamicResource PrimaryStarBrush}" Data="F1 M 22.2573,0L 29.1328,13.931L 44.5063,16.1666L 33.3843,27.0173L 36.0095,42.331L 22.2573,35.0911L 8.50328,42.331L 11.1285,27.0173L 0,16.1666L 15.3803,13.931L 22.2573,0 Z " />
          <Path x:Name="HeadShadow" Fill="#FF9C9EA0" Data="F1 M 68.4103,33.8198C 71.0599,32.3535 75.3615,31.1551 78.0111,31.1551C 80.663,31.1551 80.663,32.3535 78.0111,33.8198C 75.3615,35.2914 71.0626,36.4844 68.4103,36.4844C 65.7596,36.4844 65.7596,35.2914 68.4103,33.8198 Z " />
          <Path x:Name="BodyShadow" Fill="#FF9C9EA0" Data="F1 M 46.1244,49.2728C 46.1244,49.2728 35.2109,55.3925 34.1179,55.9999C 33.029,56.6014 33.6827,57.0282 34.6677,57.0282C 35.647,57.0282 37.5033,56.6014 38.7024,55.9999C 39.9034,55.3925 51.141,49.1575 51.141,49.1575L 56.9239,49.1575C 56.9239,49.1575 64.4822,41.8124 65.4671,41.1476C 66.4464,40.4808 66.8815,40.7239 66.6666,41.025C 66.4464,41.3283 62.7617,45.1884 61.9985,45.6754C 61.2352,46.1594 62.7617,46.2768 63.9627,46.0939C 65.1637,45.9133 66.7995,45.3111 67.7829,44.4665C 68.7633,43.6182 73.4299,38.9075 74.0819,38.303C 74.7378,37.6934 74.6313,36.9708 72.7736,36.9708L 62.5183,36.9708C 60.6635,36.9708 57.9364,37.6934 56.4098,38.303C 54.8806,38.9075 42.5775,43.6182 40.5052,44.4665C 38.4348,45.3111 37.8871,45.9133 38.4348,46.0939C 38.979,46.2768 40.9418,46.1594 41.9249,45.6754C 42.9057,45.1884 53.135,41.3283 54.0104,41.025C 54.8806,40.7239 56.1911,40.4808 54.7741,41.1476C 53.3544,41.8124 34.4487,49.1575 34.4487,49.1575L 40.2315,49.1575C 40.2315,49.1575 28.9928,55.3925 28.0094,55.9999C 27.0285,56.6014 27.3567,57.0282 28.3376,57.0282C 29.3184,57.0282 31.5024,56.6014 32.5943,55.9999C 33.6827,55.3925 44.8165,49.2728 44.8165,49.2728L 46.1244,49.2728 Z " />
          <Path x:Name="PersonHead" Fill="{Binding Path=NodeFill}" Stroke="{Binding Path=NodeStroke}" Data="F1 M 27.2367,15.2068C 27.2367,12.5595 29.3865,10.4089 32.0361,10.4089C 34.6866,10.4089 36.8371,12.5595 36.8371,15.2068C 36.8371,17.861 34.6866,20.0108 32.0361,20.0108C 29.3865,20.0108 27.2367,17.861 27.2367,15.2068 Z " />
          <Path x:Name="PersonBody" Fill="{Binding Path=NodeFill}" Stroke="{Binding Path=NodeStroke}" Data="F1 M 32.8009,43.0604C 32.8009,43.0604 32.9085,54.0789 32.9085,55.1734C 32.9085,56.265 34.3297,57.0282 35.3079,57.0282C 36.2895,57.0282 37.3814,56.265 37.4935,55.1734C 37.6,54.0789 37.6,42.8414 37.6,42.8414L 43.3833,42.8414C 43.3833,42.8414 37.7096,29.6127 37.4935,28.4091C 37.2718,27.2078 38.1446,27.6511 38.4728,28.1953C 38.801,28.7366 42.0728,35.6964 42.1823,36.5688C 42.2929,37.442 44.0366,37.6625 44.9095,37.3321C 45.7819,37.0069 46.3295,35.9124 45.7819,34.3829C 45.2377,32.86 41.4191,24.3714 40.9839,23.2852C 40.5466,22.1938 39.1295,20.8862 37.2718,20.8862L 27.0157,20.8862C 25.1621,20.8862 23.7448,22.1938 23.3085,23.2852C 22.8727,24.3714 19.0526,32.86 18.5079,34.3829C 17.9618,35.9124 18.5079,37.0069 19.38,37.3321C 20.252,37.6625 22.0007,37.442 22.1083,36.5688C 22.216,35.6964 25.4907,28.7366 25.8163,28.1953C 26.1444,27.6511 27.0157,27.2078 26.8008,28.4091C 26.5799,29.6127 20.9084,42.8414 20.9084,42.8414L 26.6902,42.8414C 26.6902,42.8414 26.6902,54.0789 26.8008,55.1734C 26.9081,56.265 28.0011,57.0282 28.9804,57.0282C 29.965,57.0282 31.3793,56.265 31.3793,55.1734C 31.3793,54.0789 31.4904,43.0604 31.4904,43.0604L 32.8009,43.0604 Z " />
        </Canvas>
      </Canvas>
      <Label Content="{Binding Path=BottomLabel}" Padding="0,5,0,0" HorizontalAlignment="Center" TextBlock.TextAlignment="Right" Foreground="{DynamicResource FontColor}" FontSize="9"></Label>
    </StackPanel>
    <!-- Mouse over -->
    <ControlTemplate.Triggers>
      <Trigger Property="IsMouseOver" Value="true">
        <Setter Property="Fill" Value="{Binding Path=NodeHoverFill}" TargetName="PersonHead" />
        <Setter Property="Fill" Value="{Binding Path=NodeHoverFill}" TargetName="PersonBody" />
      </Trigger>
    </ControlTemplate.Triggers>
  </ControlTemplate>

  <!-- Male primary node -->
  <ControlTemplate x:Key="MalePrimaryNodeTemplate" TargetType="{x:Type local:DiagramNode}">
    <StackPanel ToolTipService.InitialShowDelay="300">
      <StackPanel.ToolTip>
        <ToolTip Style="{DynamicResource DiagramToolTip}" Content="{Binding Path=BottomLabel}" />
      </StackPanel.ToolTip>
      <Canvas Name="Person" Width="88" Height="56">
        <Canvas>
          <Path x:Name="Star" StrokeThickness="2" StrokeMiterLimit="2.75" Stroke="#FFFFFFFF" Fill="{DynamicResource PrimaryStarBrush}" Data="F1 M 22.6498,0L 29.6465,14.1766L 45.2911,16.4517L 33.9729,27.4937L 36.6444,43.0773L 22.6498,35.7098L 8.65321,43.0773L 11.3247,27.4937L -1.7505e-007,16.4517L 15.6515,14.1766L 22.6498,0 Z " />
          <Path x:Name="HeadShadow" Fill="#FF9C9EA0" Data="F1 M 68.4319,31.9702C 71.036,30.3815 75.3057,29.005 77.9706,28.8947C 80.6333,28.7852 80.6828,29.9839 78.081,31.5726C 75.4765,33.1583 71.2064,34.5379 68.5418,34.6474C 65.8788,34.757 65.8294,33.5558 68.4319,31.9702 Z " />
          <Path x:Name="BodyShadow" Fill="#FF9C9EA0" Data="F1 M 51.8543,45.4505C 51.8543,45.4505 36.9347,54.5544 35.5413,55.4033C 34.148,56.2527 35.482,56.6242 36.3587,56.5875C 37.2376,56.5522 38.8788,56.4251 40.7004,55.3128C 42.5216,54.2029 68.1553,38.5618 68.1553,38.5618L 69.7985,38.4936C 69.7985,38.4936 61.2265,43.7247 59.9415,44.5075C 58.6573,45.2943 59.6496,45.4336 60.4171,45.4022C 61.1847,45.3701 62.6083,45.2521 63.8952,44.4677C 65.1794,43.6833 72.8859,38.7961 75.0291,37.4863C 77.1725,36.1802 78.4218,34.544 74.6959,34.6988L 61.7588,35.2319C 58.0306,35.3851 53.7115,37.1469 51.5682,38.4529C 49.4249,39.7614 41.0601,44.6776 39.7755,45.4597C 38.4889,46.2456 39.6966,46.254 40.4641,46.2241C 41.2316,46.1927 42.8701,45.9438 44.1552,45.1586C 45.4393,44.3742 54.0121,39.1447 54.0121,39.1447L 55.6556,39.0773C 55.6556,39.0773 30.0226,54.7169 28.201,55.8284C 26.3795,56.9399 27.8077,56.9399 28.6844,56.9046C 29.5631,56.8679 32.3953,56.324 33.788,55.4767C 35.1794,54.6265 50.0994,45.5233 50.0994,45.5233L 51.8543,45.4505 Z " />
          <Path x:Name="PersonHead" Fill="{Binding Path=NodeFill}" Stroke="{Binding Path=NodeStroke}" Data="F1 M 27.8303,15.3447C 27.8303,12.6798 29.992,10.5181 32.6592,10.5181C 35.3246,10.5181 37.4858,12.6798 37.4858,15.3447C 37.4858,18.012 35.3246,20.1736 32.6592,20.1736C 29.992,20.1736 27.8303,18.012 27.8303,15.3447 Z " />
          <Path x:Name="PersonBody" Fill="{Binding Path=NodeFill}" Stroke="{Binding Path=NodeStroke}" Data="F1 M 33.8262,38.5073C 33.8262,38.5073 33.8262,53.7908 33.8262,55.2155C 33.8262,56.6426 35.9102,57.4109 36.7873,57.4109C 37.6666,57.4109 39.2025,57.3022 39.2025,55.4362C 39.2025,53.5709 39.2025,27.3137 39.2025,27.3137L 40.8479,27.3137C 40.8479,27.3137 40.8479,36.0937 40.8479,37.4096C 40.8479,38.7272 42.1639,39.0566 42.9318,39.0566C 43.6997,39.0566 45.0177,38.9478 45.0177,37.6303C 45.0177,36.3143 44.6883,28.0811 44.6883,25.8881C 44.6883,23.6935 43.1521,20.8416 39.4208,20.8416L 26.4729,20.8416C 22.7436,20.8416 21.2074,23.6935 21.2074,25.8881C 21.2074,28.0811 20.878,36.3143 20.878,37.6303C 20.878,38.9478 22.194,39.0566 22.9619,39.0566C 23.7298,39.0566 25.0478,38.7272 25.0478,37.4096C 25.0478,36.0937 25.0478,27.3137 25.0478,27.3137L 26.6932,27.3137C 26.6932,27.3137 26.6932,53.5709 26.6932,55.4362C 26.6932,57.3022 28.2294,57.4109 29.1065,57.4109C 29.9858,57.4109 32.0698,56.6426 32.0698,55.2155C 32.0698,53.7908 32.0698,38.5073 32.0698,38.5073L 33.8262,38.5073 Z " />
        </Canvas>
      </Canvas>
      <Label Content="{Binding Path=BottomLabel}" Padding="0,5,0,0" HorizontalAlignment="Center" TextBlock.TextAlignment="Right" Foreground="{DynamicResource FontColor}" FontSize="9"></Label>
    </StackPanel>
    <!-- Mouse over -->
    <ControlTemplate.Triggers>
      <Trigger Property="IsMouseOver" Value="true">
        <Setter Property="Fill" Value="{Binding Path=NodeHoverFill}" TargetName="PersonHead" />
        <Setter Property="Fill" Value="{Binding Path=NodeHoverFill}" TargetName="PersonBody" />
      </Trigger>
    </ControlTemplate.Triggers>
  </ControlTemplate>

  <!-- Welcome Header Background -->
  <DrawingBrush x:Key="WelcomeHeaderBg">
    <DrawingBrush.Drawing>
      <DrawingGroup>
        <DrawingGroup.Children>
          <GeometryDrawing Geometry="F1 M 386.667,92L 0.0833406,92L 2.46364e-008,0L 386.667,0.0408325L 386.667,92 Z ">
            <GeometryDrawing.Brush>
              <LinearGradientBrush StartPoint="0.132488,0.500228" EndPoint="1,0.500228">
                <LinearGradientBrush.GradientStops>
                  <GradientStop Color="#FFF1F8FC" Offset="0" />
                  <GradientStop Color="#FFA4B0B9" Offset="1" />
                </LinearGradientBrush.GradientStops>
              </LinearGradientBrush>
            </GeometryDrawing.Brush>
          </GeometryDrawing>
          <GeometryDrawing Brush="#FF939598" Geometry="F1 M 157.3,7.28961L 154.817,8.26239L 154.33,7.02094L 156.813,6.04816L 157.3,7.28961 Z M 152.334,9.23523L 149.851,10.2081L 149.365,8.96661L 151.848,7.99377L 152.334,9.23523 Z M 147.368,11.1808L 144.885,12.1537L 144.399,10.9123L 146.882,9.93939L 147.368,11.1808 Z M 142.402,13.1265L 139.92,14.0994L 139.433,12.8579L 141.916,11.8851L 142.402,13.1265 Z M 137.437,15.0722L 134.954,16.045L 134.467,14.8035L 136.95,13.8307L 137.437,15.0722 Z M 132.471,17.0178L 129.988,17.9907L 129.502,16.7492L 131.984,15.7764L 132.471,17.0178 Z M 127.505,18.9634L 125.022,19.9363L 124.536,18.6948L 127.019,17.722L 127.505,18.9634 Z M 122.539,20.9091L 120.056,21.8819L 119.57,20.6404L 122.053,19.6677L 122.539,20.9091 Z M 117.574,22.8547L 115.091,23.8276L 114.604,22.5861L 117.087,21.6133L 117.574,22.8547 Z M 112.608,24.8004L 110.125,25.7733L 109.639,24.5318L 112.121,23.559L 112.608,24.8004 Z M 107.642,26.746L 105.159,27.7189L 104.673,26.4774L 107.156,25.5046L 107.642,26.746 Z M 102.676,28.6917L 100.193,29.6645L 99.707,28.423L 102.19,27.4503L 102.676,28.6917 Z M 97.7105,30.6373L 95.2276,31.6102L 94.7412,30.3687L 97.2241,29.3959L 97.7105,30.6373 Z M 92.7447,32.5829L 90.2618,33.5558L 89.7754,32.3143L 92.2583,31.3415L 92.7447,32.5829 Z M 87.7789,34.5286L 85.2961,35.5014L 84.8096,34.2599L 87.2925,33.2872L 87.7789,34.5286 Z M 82.8132,36.4743L 80.3303,37.4471L 79.8439,36.2056L 82.3268,35.2328L 82.8132,36.4743 Z M 77.8474,38.4199L 75.3645,39.3928L 74.8781,38.1513L 77.361,37.1785L 77.8474,38.4199 Z M 72.8816,40.3655L 70.3987,41.3384L 69.9123,40.0969L 72.3952,39.1241L 72.8816,40.3655 Z M 67.9158,42.3112L 65.433,43.284L 64.9465,42.0425L 67.4294,41.0698L 67.9158,42.3112 Z M 62.9501,44.2568L 60.4672,45.2297L 59.9808,43.9882L 62.4637,43.0154L 62.9501,44.2568 Z M 57.9843,46.2025L 55.5014,47.1753L 55.015,45.9338L 57.4979,44.961L 57.9843,46.2025 Z M 53.0185,48.1481L 50.5356,49.121L 50.0492,47.8795L 52.5321,46.9067L 53.0185,48.1481 Z M 48.0527,50.0938L 45.5699,51.0666L 45.0835,49.8251L 47.5663,48.8524L 48.0527,50.0938 Z M 43.087,52.0394L 40.6041,53.0123L 40.1177,51.7708L 42.6006,50.798L 43.087,52.0394 Z M 38.1212,53.985L 35.6383,54.9579L 35.1519,53.7164L 37.6348,52.7436L 38.1212,53.985 Z M 33.1554,55.9307L 30.6725,56.9035L 30.1861,55.662L 32.669,54.6893L 33.1554,55.9307 Z M 28.1897,57.8763L 25.7068,58.8492L 25.2204,57.6077L 27.7032,56.6349L 28.1897,57.8763 Z M 26.0024,56.7734L 28.1452,55.1861L 28.9389,56.2574L 26.7961,57.8448L 26.0024,56.7734 Z M 30.2879,53.5987L 32.4307,52.0113L 33.2244,53.0827L 31.0816,54.6701L 30.2879,53.5987 Z M 34.5734,50.424L 36.7162,48.8366L 37.5098,49.908L 35.3671,51.4953L 34.5734,50.424 Z M 38.8589,47.2492L 41.0017,45.6618L 41.7953,46.7332L 39.6526,48.3206L 38.8589,47.2492 Z M 43.1444,44.0745L 45.2871,42.4871L 46.0808,43.5584L 43.9381,45.1458L 43.1444,44.0745 Z M 47.4299,40.8997L 49.5726,39.3123L 50.3663,40.3837L 48.2236,41.9711L 47.4299,40.8997 Z M 51.7154,37.7249L 53.8581,36.1376L 54.6518,37.2089L 52.5091,38.7963L 51.7154,37.7249 Z M 56.0009,34.5502L 58.1436,32.9628L 58.9373,34.0342L 56.7945,35.6216L 56.0009,34.5502 Z M 60.2863,31.3754L 62.4291,29.7881L 63.2228,30.8594L 61.08,32.4468L 60.2863,31.3754 Z M 64.5718,28.2007L 66.7146,26.6133L 67.5083,27.6847L 65.3655,29.272L 64.5718,28.2007 Z M 68.8573,25.0259L 71.0001,23.4385L 71.7938,24.5099L 69.651,26.0974L 68.8573,25.0259 Z M 73.1428,21.8512L 75.2855,20.2639L 76.0792,21.3352L 73.9365,22.9225L 73.1428,21.8512 Z M 77.4283,18.6765L 79.571,17.0891L 80.3647,18.1605L 78.222,19.7478L 77.4283,18.6765 Z M 81.7138,15.5017L 83.8565,13.9143L 84.6502,14.9857L 82.5075,16.5731L 81.7138,15.5017 Z M 85.9993,12.327L 88.142,10.7396L 88.9357,11.811L 86.7929,13.3983L 85.9993,12.327 Z M 90.2848,9.15216L 92.4275,7.56482L 93.2212,8.63617L 91.0784,10.2236L 90.2848,9.15216 Z M 94.5703,5.97748L 95.105,5.5813L 95.8987,6.65265L 95.3639,7.04883L 94.5703,5.97748 Z M 162.266,5.34393L 159.783,6.31677L 159.296,5.07532L 161.779,4.10248L 162.266,5.34393 Z " />
          <GeometryDrawing Brush="#FF9C9EA1" Geometry="F1 M 60.941,40.838C 63.2875,39.6639 67.0894,38.7101 69.4359,38.7101C 71.7825,38.7101 71.7825,39.6639 69.4359,40.838C 67.0894,42.0151 63.2897,42.967 60.941,42.967C 58.5965,42.967 58.5965,42.0151 60.941,40.838 Z " />
          <GeometryDrawing Brush="#FF9C9EA1" Geometry="F1 M 39.1726,53.1823C 39.1726,53.1823 29.5209,58.0687 28.5539,58.5489C 27.5901,59.0339 28.169,59.3718 29.0379,59.3718C 29.9047,59.3718 31.5454,59.0339 32.6084,58.5489C 33.6703,58.0687 43.6141,53.0842 43.6141,53.0842L 48.7284,53.0842C 48.7284,53.0842 55.413,47.2209 56.2841,46.6897C 57.1519,46.1584 57.5378,46.3528 57.3449,46.5915C 57.1519,46.8331 53.8917,49.9167 53.2178,50.3046C 52.5419,50.6915 53.8917,50.7888 54.9535,50.6424C 56.0175,50.499 57.4643,50.014 58.3332,49.3373C 59.1989,48.6608 63.3291,44.9024 63.9069,44.4183C 64.4858,43.9362 64.391,43.3529 62.748,43.3529L 53.6774,43.3529C 52.0366,43.3529 49.6239,43.9362 48.271,44.4183C 46.9202,44.9024 36.0371,48.6608 34.2023,49.3373C 32.3696,50.014 31.8888,50.499 32.3696,50.6424C 32.8525,50.7888 34.5903,50.6915 35.4582,50.3046C 36.326,49.9167 45.3775,46.8331 46.1483,46.5915C 46.9202,46.3528 48.0812,46.1584 46.8243,46.6897C 45.5694,47.2209 28.847,53.0842 28.847,53.0842L 33.9624,53.0842C 33.9624,53.0842 24.0196,58.0687 23.1486,58.5489C 22.2818,59.0339 22.5718,59.3718 23.4385,59.3718C 24.3074,59.3718 26.2382,59.0339 27.2041,58.5489C 28.169,58.0687 38.0158,53.1823 38.0158,53.1823L 39.1726,53.1823 Z " />
          <GeometryDrawing Brush="#FFDB5836" Geometry="F1 M 22.4641,25.977C 22.4641,23.8606 24.3671,22.1436 26.7105,22.1436C 29.0571,22.1436 30.9569,23.8606 30.9569,25.977C 30.9569,28.0944 29.0571,29.8113 26.7105,29.8113C 24.3671,29.8113 22.4641,28.0944 22.4641,25.977 Z " />
          <GeometryDrawing Brush="#FFDB5836" Geometry="F1 M 27.3864,48.219C 27.3864,48.219 27.4813,57.0206 27.4813,57.8915C 27.4813,58.7606 28.7383,59.3718 29.6051,59.3718C 30.4761,59.3718 31.4399,58.7606 31.538,57.8915C 31.6329,57.0206 31.6329,48.0429 31.6329,48.0429L 36.7503,48.0429C 36.7503,48.0429 31.7299,37.4781 31.538,36.5205C 31.3429,35.561 32.1158,35.9084 32.4047,36.3434C 32.6947,36.7823 35.5914,42.3365 35.6885,43.0314C 35.7844,43.7283 37.3271,43.9034 38.1001,43.6436C 38.873,43.3798 39.3549,42.5117 38.873,41.2933C 38.39,40.07 35.0125,33.2954 34.6277,32.4244C 34.2417,31.5515 32.9847,30.5062 31.3429,30.5062L 22.2711,30.5062C 20.6314,30.5062 19.3744,31.5515 18.9896,32.4244C 18.6036,33.2954 15.2261,40.07 14.7432,41.2933C 14.2623,42.5117 14.7432,43.3798 15.514,43.6436C 16.2869,43.9034 17.8328,43.7283 17.9277,43.0314C 18.0247,42.3365 20.9225,36.7823 21.2103,36.3434C 21.4982,35.9084 22.2711,35.561 22.0792,36.5205C 21.8852,37.4781 16.8658,48.0429 16.8658,48.0429L 21.9833,48.0429C 21.9833,48.0429 21.9833,57.0206 22.0792,57.8915C 22.1741,58.7606 23.14,59.3718 24.01,59.3718C 24.8778,59.3718 26.1327,58.7606 26.1327,57.8915C 26.1327,57.0206 26.2297,48.219 26.2297,48.219L 27.3864,48.219 Z " />
          <GeometryDrawing Geometry="F1 M 209.447,19.0089C 219.514,10.9311 232.183,6.117 245.945,6.117C 259.705,6.117 272.369,10.9273 282.434,19.0012">
            <GeometryDrawing.Pen>
              <Pen Thickness="2.66667" MiterLimit="2.75" Brush="#FF97C497" />
            </GeometryDrawing.Pen>
          </GeometryDrawing>
          <GeometryDrawing Brush="#FF4B5488" Geometry="F1 M 136.872,14.6385C 136.872,14.215 137.252,13.8715 137.722,13.8715C 138.192,13.8715 138.573,14.215 138.573,14.6385C 138.573,15.0639 138.192,15.4085 137.722,15.4085C 137.252,15.4085 136.872,15.0639 136.872,14.6385 Z " />
          <GeometryDrawing Brush="#FF4B5488" Geometry="F1 M 137.917,18.3064L 137.917,20.9695C 137.917,21.1966 138.281,21.3159 138.437,21.3159C 138.594,21.3159 138.863,21.2996 138.863,21.0032L 138.863,16.5259L 139.153,16.5259L 139.153,18.1341C 139.153,18.3439 139.387,18.395 139.523,18.395C 139.658,18.395 139.889,18.3776 139.889,18.1678C 139.889,17.958 139.83,16.6481 139.83,16.2997C 139.83,15.9484 139.561,15.4941 138.903,15.4941L 136.618,15.4941C 135.96,15.4941 135.69,15.9484 135.69,16.2997C 135.69,16.6481 135.631,17.958 135.631,18.1678C 135.631,18.3776 135.865,18.395 136,18.395C 136.136,18.395 136.366,18.3439 136.366,18.1341L 136.366,16.5259L 136.656,16.5259L 136.656,21.0032C 136.656,21.2996 136.929,21.3159 137.083,21.3159C 137.236,21.3159 137.607,21.1966 137.607,20.9695L 137.607,18.3064L 137.917,18.3064 Z " />
          <GeometryDrawing Brush="#FF4B5488" Geometry="F1 M 133.16,20.3275C 133.16,19.9041 133.541,19.5595 134.012,19.5595C 134.483,19.5595 134.862,19.9041 134.862,20.3275C 134.862,20.7529 134.483,21.0955 134.012,21.0955C 133.541,21.0955 133.16,20.7529 133.16,20.3275 Z " />
          <GeometryDrawing Brush="#FF4B5488" Geometry="F1 M 134.205,23.9992L 134.205,26.6575C 134.205,26.8856 134.575,27.0068 134.729,27.0068C 134.885,27.0068 135.155,26.9886 135.155,26.6912L 135.155,22.2158L 135.444,22.2158L 135.444,23.8221C 135.444,24.0339 135.679,24.0839 135.812,24.0839C 135.949,24.0839 136.18,24.0676 136.18,23.8577C 136.18,23.6461 136.121,22.3361 136.121,21.9887C 136.121,21.6384 135.852,21.1822 135.191,21.1822L 132.908,21.1822C 132.251,21.1822 131.98,21.6384 131.98,21.9887C 131.98,22.3361 131.922,23.6461 131.922,23.8577C 131.922,24.0676 132.153,24.0839 132.29,24.0839C 132.426,24.0839 132.658,24.0339 132.658,23.8221L 132.658,22.2158L 132.947,22.2158L 132.947,26.6912C 132.947,26.9886 133.218,27.0068 133.374,27.0068C 133.531,27.0068 133.898,26.8856 133.898,26.6575L 133.898,23.9992L 134.205,23.9992 Z " />
          <GeometryDrawing Brush="#FF4B5488" Geometry="F1 M 129.272,14.3969C 129.272,13.9744 129.654,13.6289 130.124,13.6289C 130.593,13.6289 130.975,13.9744 130.975,14.3969C 130.975,14.8223 130.593,15.165 130.124,15.165C 129.654,15.165 129.272,14.8223 129.272,14.3969 Z " />
          <GeometryDrawing Brush="#FF4B5488" Geometry="F1 M 130.317,18.0648L 130.317,20.7279C 130.317,20.9531 130.685,21.0743 130.841,21.0743C 130.996,21.0743 131.264,21.058 131.264,20.7616L 131.264,16.2843L 131.558,16.2843L 131.558,17.8925C 131.558,18.1014 131.789,18.1534 131.925,18.1534C 132.058,18.1534 132.294,18.136 132.294,17.9262C 132.294,17.7164 132.234,16.4066 132.234,16.0582C 132.234,15.7088 131.964,15.2516 131.303,15.2516L 129.019,15.2516C 128.361,15.2516 128.091,15.7088 128.091,16.0582C 128.091,16.4066 128.033,17.7164 128.033,17.9262C 128.033,18.136 128.266,18.1534 128.402,18.1534C 128.539,18.1534 128.768,18.1014 128.768,17.8925L 128.768,16.2843L 129.06,16.2843L 129.06,20.7616C 129.06,21.058 129.331,21.0743 129.484,21.0743C 129.64,21.0743 130.008,20.9531 130.008,20.7279L 130.008,18.0648L 130.317,18.0648 Z " />
          <GeometryDrawing Geometry="F1 M 101.246,23.4554C 107.908,15.1053 120.809,13.2112 130.064,19.2275C 139.314,25.2408 141.414,36.8892 134.753,45.2403">
            <GeometryDrawing.Pen>
              <Pen Thickness="1.33333" MiterLimit="2.75" Brush="#FF4B5488" />
            </GeometryDrawing.Pen>
          </GeometryDrawing>
          <GeometryDrawing Brush="#FF9C9EA1" Geometry="F1 M 147.273,41.1413C 149.578,39.9873 153.317,39.0499 155.62,39.0499C 157.929,39.0499 157.929,39.9873 155.62,41.1413C 153.317,42.2943 149.58,43.2327 147.273,43.2327C 144.969,43.2327 144.969,42.2943 147.273,41.1413 Z " />
          <GeometryDrawing Brush="#FF9C9EA1" Geometry="F1 M 127.896,53.27C 127.896,53.27 118.407,58.0706 117.46,58.548C 116.513,59.0215 117.08,59.3555 117.935,59.3555C 118.787,59.3555 120.401,59.0215 121.445,58.548C 122.488,58.0706 132.262,53.1785 132.262,53.1785L 137.287,53.1785C 137.287,53.1785 143.856,47.4155 144.713,46.8938C 145.565,46.3702 145.945,46.5569 145.758,46.7956C 145.565,47.0333 142.364,50.0631 141.698,50.4433C 141.034,50.8244 142.364,50.9168 143.405,50.7753C 144.45,50.6319 145.871,50.1603 146.728,49.4952C 147.58,48.8293 151.638,45.1315 152.205,44.657C 152.775,44.1826 152.682,43.6109 151.069,43.6109L 142.15,43.6109C 140.541,43.6109 138.168,44.1826 136.84,44.657C 135.511,45.1315 124.814,48.8293 123.011,49.4952C 121.211,50.1603 120.737,50.6319 121.211,50.7753C 121.683,50.9168 123.391,50.8244 124.247,50.4433C 125.099,50.0631 133.995,47.0333 134.753,46.7956C 135.511,46.5569 136.653,46.3702 135.417,46.8938C 134.182,47.4155 117.747,53.1785 117.747,53.1785L 122.774,53.1785C 122.774,53.1785 113.004,58.0706 112.149,58.548C 111.296,59.0215 111.581,59.3555 112.434,59.3555C 113.286,59.3555 115.183,59.0215 116.134,58.548C 117.08,58.0706 126.758,53.27 126.758,53.27L 127.896,53.27 Z " />
          <GeometryDrawing Brush="#FF4B5488" Geometry="F1 M 111.475,26.5305C 111.475,24.4506 113.345,22.7625 115.649,22.7625C 117.953,22.7625 119.823,24.4506 119.823,26.5305C 119.823,28.6113 117.953,30.2984 115.649,30.2984C 113.345,30.2984 111.475,28.6113 111.475,26.5305 Z " />
          <GeometryDrawing Brush="#FF4B5488" Geometry="F1 M 116.312,48.3923C 116.312,48.3923 116.407,57.0408 116.407,57.8974C 116.407,58.7559 117.641,59.3555 118.494,59.3555C 119.35,59.3555 120.295,58.7559 120.394,57.8974C 120.486,57.0408 120.486,48.221 120.486,48.221L 125.516,48.221C 125.516,48.221 120.581,37.8382 120.394,36.8912C 120.202,35.9499 120.96,36.2983 121.244,36.7227C 121.53,37.151 124.374,42.6129 124.473,43.2972C 124.565,43.9824 126.082,44.1537 126.84,43.8958C 127.604,43.6407 128.076,42.7822 127.604,41.5831C 127.126,40.3877 123.808,33.7247 123.43,32.8701C 123.05,32.0135 121.816,30.9865 120.202,30.9865L 111.285,30.9865C 109.675,30.9865 108.439,32.0135 108.061,32.8701C 107.681,33.7247 104.358,40.3877 103.888,41.5831C 103.413,42.7822 103.888,43.6407 104.646,43.8958C 105.403,44.1537 106.923,43.9824 107.017,43.2972C 107.112,42.6129 109.959,37.151 110.241,36.7227C 110.524,36.2983 111.285,35.9499 111.096,36.8912C 110.904,37.8382 105.973,48.221 105.973,48.221L 111.002,48.221C 111.002,48.221 111.002,57.0408 111.096,57.8974C 111.191,58.7559 112.14,59.3555 112.99,59.3555C 113.848,59.3555 115.078,58.7559 115.078,57.8974C 115.078,57.0408 115.175,48.3923 115.175,48.3923L 116.312,48.3923 Z " />
          <GeometryDrawing Brush="#FF939598" Geometry="F1 M 356.921,29.5062L 354.893,31.2377L 354.027,30.2237L 356.055,28.4922L 356.921,29.5062 Z M 352.865,32.9692L 350.837,34.7007L 349.971,33.6868L 351.999,31.9553L 352.865,32.9692 Z M 348.809,36.4323L 346.781,38.1638L 345.915,37.1498L 347.943,35.4183L 348.809,36.4323 Z M 344.753,39.8953L 342.725,41.6268L 341.859,40.6129L 343.887,38.8813L 344.753,39.8953 Z M 340.697,43.3583L 338.669,45.0899L 337.803,44.0759L 339.831,42.3444L 340.697,43.3583 Z M 336.641,46.8214L 334.613,48.5529L 333.747,47.5389L 335.775,45.8074L 336.641,46.8214 Z M 332.585,50.2845L 330.557,52.016L 329.691,51.002L 331.719,49.2704L 332.585,50.2845 Z M 328.529,53.7475L 326.501,55.4791L 325.635,54.465L 327.663,52.7335L 328.529,53.7475 Z M 324.472,57.2106L 322.444,58.9421L 321.579,57.9281L 323.607,56.1966L 324.472,57.2106 Z M 320.416,60.6736L 318.388,62.4052L 317.523,61.3912L 319.551,59.6596L 320.416,60.6736 Z M 316.36,64.1367L 314.332,65.8682L 313.467,64.8542L 315.495,63.1227L 316.36,64.1367 Z M 312.304,67.5997L 310.276,69.3312L 309.41,68.3172L 311.439,66.5857L 312.304,67.5997 Z M 307.34,70.5837L 305.612,68.5523L 306.628,67.6885L 308.355,69.7198L 307.34,70.5837 Z M 303.884,66.521L 302.157,64.4897L 303.172,63.6258L 304.9,65.6572L 303.884,66.521 Z M 300.429,62.4584L 298.701,60.4271L 299.717,59.5632L 301.445,61.5945L 300.429,62.4584 Z M 296.974,58.3957L 295.246,56.3644L 296.262,55.5005L 297.989,57.5319L 296.974,58.3957 Z M 293.518,54.3331L 291.791,52.3018L 292.806,51.4379L 294.534,53.4692L 293.518,54.3331 Z M 290.063,50.2704L 288.335,48.2391L 289.351,47.3752L 291.079,49.4066L 290.063,50.2704 Z M 286.608,46.2078L 284.88,44.1765L 285.896,43.3126L 287.623,45.3439L 286.608,46.2078 Z M 283.152,42.1451L 281.425,40.1138L 282.44,39.2499L 284.168,41.2813L 283.152,42.1451 Z M 279.697,38.0825L 277.969,36.0512L 278.985,35.1873L 280.713,37.2186L 279.697,38.0825 Z M 276.242,34.0198L 274.514,31.9885L 275.53,31.1247L 277.257,33.156L 276.242,34.0198 Z M 272.786,29.9572L 271.059,27.9259L 272.074,27.0621L 273.802,29.0933L 272.786,29.9572 Z M 269.331,25.8946L 267.603,23.8632L 268.619,22.9994L 270.347,25.0307L 269.331,25.8946 Z M 265.876,21.8319L 264.148,19.8006L 265.164,18.9368L 266.891,20.9681L 265.876,21.8319 Z M 262.42,17.7693L 260.693,15.738L 261.708,14.8741L 263.436,16.9055L 262.42,17.7693 Z M 258.965,13.7066L 257.237,11.6753L 258.253,10.8115L 259.981,12.8428L 258.965,13.7066 Z M 255.51,9.64398L 253.782,7.61267L 254.798,6.74884L 256.525,8.78015L 255.51,9.64398 Z M 252.054,5.58136L 250.327,3.54999L 251.342,2.68616L 253.07,4.71747L 252.054,5.58136 Z M 248.599,1.51874L 247.675,0.431946L 248.69,-0.431946L 249.615,0.654846L 248.599,1.51874 Z M 360.977,26.0432L 358.949,27.7747L 358.083,26.7607L 360.111,25.0291L 360.977,26.0432 Z " />
          <GeometryDrawing Brush="#FFF28D55" Geometry="F1 M 292.058,22.8621L 300.118,37.6028L 318.136,39.9685L 305.1,51.4494L 308.176,67.6541L 292.058,59.993L 275.936,67.6541L 279.014,51.4494L 265.97,39.9685L 283.997,37.6028L 292.058,22.8621 Z ">
            <GeometryDrawing.Pen>
              <Pen Thickness="4" MiterLimit="2.75" Brush="#FFFFFFFF" />
            </GeometryDrawing.Pen>
          </GeometryDrawing>
          <GeometryDrawing Brush="#FF9C9EA1" Geometry="F1 M 344.791,56.1048C 347.792,54.4532 352.709,53.023 355.778,52.9066C 358.845,52.793 358.901,54.0403 355.904,55.6909C 352.904,57.3396 347.987,58.7746 344.917,58.8891C 341.85,59.0037 341.793,57.7535 344.791,56.1048 Z " />
          <GeometryDrawing Brush="#FF9C9EA1" Geometry="F1 M 325.696,70.1218C 325.696,70.1218 308.511,79.5874 306.906,80.4699C 305.303,81.3535 306.837,81.7394 307.848,81.7018C 308.862,81.6653 310.75,81.5325 312.849,80.3766C 314.947,79.2226 344.473,62.9583 344.473,62.9583L 346.365,62.8881C 346.365,62.8881 336.493,68.3259 335.011,69.142C 333.532,69.9591 334.675,70.1044 335.56,70.0717C 336.444,70.038 338.082,69.9158 339.565,69.0987C 341.044,68.2835 349.921,63.2018 352.389,61.84C 354.857,60.482 356.297,58.7803 352.007,58.9411L 337.105,59.4964C 332.812,59.6552 327.836,61.4877 325.366,62.8467C 322.898,64.2056 313.264,69.3182 311.784,70.1314C 310.303,70.9485 311.693,70.9581 312.577,70.9264C 313.46,70.8937 315.347,70.6348 316.829,69.8176C 318.306,69.0024 328.182,63.5646 328.182,63.5646L 330.073,63.4944C 330.073,63.4944 300.549,79.7558 298.452,80.9127C 296.355,82.0685 297.999,82.0685 299.008,82.032C 300.02,81.9935 303.283,81.4285 304.885,80.5469C 306.489,79.6634 323.673,70.1968 323.673,70.1968L 325.696,70.1218 Z " />
          <GeometryDrawing Brush="#FF2D7ABF" Geometry="F1 M 298.025,38.8174C 298.025,36.0456 300.514,33.7993 303.587,33.7993C 306.657,33.7993 309.144,36.0456 309.144,38.8174C 309.144,41.5912 306.657,43.8384 303.587,43.8384C 300.514,43.8384 298.025,41.5912 298.025,38.8174 Z " />
          <GeometryDrawing Brush="#FF2D7ABF" Geometry="F1 M 304.93,62.9025L 304.93,80.2755C 304.93,81.7587 307.331,82.5575 308.341,82.5575C 309.355,82.5575 311.123,82.4449 311.123,80.5056L 311.123,51.2628L 313.018,51.2628L 313.018,61.761C 313.018,63.1315 314.534,63.4732 315.418,63.4732C 316.303,63.4732 317.821,63.3597 317.821,61.9901C 317.821,60.6215 317.442,52.0616 317.442,49.7816C 317.442,47.4996 315.673,44.5343 311.374,44.5343L 296.462,44.5343C 292.165,44.5343 290.397,47.4996 290.397,49.7816C 290.397,52.0616 290.016,60.6215 290.016,61.9901C 290.016,63.3597 291.532,63.4732 292.418,63.4732C 293.301,63.4732 294.82,63.1315 294.82,61.761L 294.82,51.2628L 296.713,51.2628L 296.713,80.5056C 296.713,82.4449 298.485,82.5575 299.495,82.5575C 300.507,82.5575 302.909,81.7587 302.909,80.2755L 302.909,62.9025L 304.93,62.9025 Z " />
          <GeometryDrawing Brush="#FF9C9EA1" Geometry="F1 M 241.677,41.1971C 244.024,40.0229 247.826,39.0692 250.172,39.0692C 252.519,39.0692 252.519,40.0229 250.172,41.1971C 247.826,42.3742 244.026,43.326 241.677,43.326C 239.333,43.326 239.333,42.3742 241.677,41.1971 Z " />
          <GeometryDrawing Brush="#FF9C9EA1" Geometry="F1 M 219.909,53.5414C 219.909,53.5414 210.257,58.4277 209.29,58.9079C 208.326,59.393 208.905,59.7308 209.774,59.7308C 210.641,59.7308 212.282,59.393 213.345,58.9079C 214.406,58.4277 224.35,53.4432 224.35,53.4432L 229.465,53.4432C 229.465,53.4432 236.149,47.58 237.02,47.0488C 237.888,46.5175 238.274,46.7119 238.081,46.9506C 237.888,47.1921 234.628,50.2758 233.954,50.6636C 233.278,51.0506 234.628,51.1478 235.69,51.0015C 236.754,50.8581 238.2,50.373 239.069,49.6964C 239.935,49.0198 244.065,45.2615 244.643,44.7774C 245.222,44.2952 245.127,43.712 243.484,43.712L 234.414,43.712C 232.773,43.712 230.36,44.2952 229.007,44.7774C 227.656,45.2615 216.773,49.0198 214.938,49.6964C 213.106,50.373 212.625,50.8581 213.106,51.0015C 213.589,51.1478 215.327,51.0506 216.194,50.6636C 217.062,50.2758 226.114,47.1921 226.885,46.9506C 227.656,46.7119 228.817,46.5175 227.56,47.0488C 226.306,47.58 209.583,53.4432 209.583,53.4432L 214.699,53.4432C 214.699,53.4432 204.756,58.4277 203.885,58.9079C 203.018,59.393 203.308,59.7308 204.175,59.7308C 205.044,59.7308 206.974,59.393 207.94,58.9079C 208.905,58.4277 218.752,53.5414 218.752,53.5414L 219.909,53.5414 Z " />
          <GeometryDrawing Brush="#FFDB5836" Geometry="F1 M 203.2,26.3361C 203.2,24.2197 205.103,22.5026 207.447,22.5026C 209.793,22.5026 211.693,24.2197 211.693,26.3361C 211.693,28.4534 209.793,30.1704 207.447,30.1704C 205.103,30.1704 203.2,28.4534 203.2,26.3361 Z " />
          <GeometryDrawing Brush="#FFDB5836" Geometry="F1 M 208.123,48.5781C 208.123,48.5781 208.218,57.3796 208.218,58.2506C 208.218,59.1197 209.474,59.7308 210.341,59.7308C 211.212,59.7308 212.176,59.1197 212.274,58.2506C 212.369,57.3796 212.369,48.4019 212.369,48.4019L 217.487,48.4019C 217.487,48.4019 212.466,37.8372 212.274,36.8796C 212.079,35.92 212.852,36.2675 213.141,36.7025C 213.431,37.1414 216.328,42.6956 216.425,43.3905C 216.521,44.0873 218.063,44.2625 218.836,44.0026C 219.609,43.739 220.091,42.8708 219.609,41.6523C 219.126,40.429 215.749,33.6545 215.364,32.7834C 214.978,31.9105 213.721,30.8653 212.079,30.8653L 203.007,30.8653C 201.368,30.8653 200.111,31.9105 199.726,32.7834C 199.34,33.6545 195.962,40.429 195.479,41.6523C 194.998,42.8708 195.479,43.739 196.25,44.0026C 197.023,44.2625 198.569,44.0873 198.664,43.3905C 198.761,42.6956 201.659,37.1414 201.946,36.7025C 202.234,36.2675 203.007,35.92 202.815,36.8796C 202.621,37.8372 197.602,48.4019 197.602,48.4019L 202.719,48.4019C 202.719,48.4019 202.719,57.3796 202.815,58.2506C 202.91,59.1197 203.876,59.7308 204.746,59.7308C 205.614,59.7308 206.869,59.1197 206.869,58.2506C 206.869,57.3796 206.966,48.5781 206.966,48.5781L 208.123,48.5781 Z " />
        </DrawingGroup.Children>
      </DrawingGroup>
    </DrawingBrush.Drawing>
  </DrawingBrush>

  <LinearGradientBrush x:Key="DarkBrush" StartPoint="0,0" EndPoint="0,1">
    <GradientBrush.GradientStops>
      <GradientStopCollection>
        <GradientStop Color="#FFF" Offset="0.0"/>
        <GradientStop Color="#AAA" Offset="1.0"/>
      </GradientStopCollection>
    </GradientBrush.GradientStops>
  </LinearGradientBrush>

  <SolidColorBrush x:Key="WindowBackgroundBrush" Color="#FFF" />

  <LinearGradientBrush x:Key="NormalBorderBrush" StartPoint="0,0" EndPoint="0,1">
    <GradientBrush.GradientStops>
      <GradientStopCollection>
        <GradientStop Color="#CCC" Offset="0.0"/>
        <GradientStop Color="#444" Offset="1.0"/>
      </GradientStopCollection>
    </GradientBrush.GradientStops>
  </LinearGradientBrush>

  <SolidColorBrush x:Key="GlyphBrush" Color="#444" />
  
  <ControlTemplate x:Key="FamilyMemberComboBoxToggleButton" TargetType="ToggleButton">
    <Grid>
      <Grid.ColumnDefinitions>
        <ColumnDefinition />
        <ColumnDefinition Width="20" />
      </Grid.ColumnDefinitions>
      <Border
        x:Name="Border"
        Grid.ColumnSpan="2"
        CornerRadius="5">
        <Border.Background>
          <LinearGradientBrush EndPoint="0.501,0.039" StartPoint="0.501,0.971">
            <GradientStop Color="#FF4A7DDB" Offset="0.335"/>
            <GradientStop Color="#FF75B5E0" Offset="0.879"/>
            <GradientStop Color="#FF04448C" Offset="0.011"/>
            <GradientStop Color="#FF75B5E0" Offset="0.986"/>
          </LinearGradientBrush>
        </Border.Background>
      </Border>
      <Border
        Grid.Column="0"
        CornerRadius="2,0,0,2"
        Margin="1"
        Background="{StaticResource WindowBackgroundBrush}"
        BorderBrush="{StaticResource NormalBorderBrush}"
        BorderThickness="0,0,1,0" />
      <Path
        x:Name="Arrow"
        Grid.Column="1"
        Fill="{StaticResource GlyphBrush}"
        HorizontalAlignment="Center"
        VerticalAlignment="Center"
        Data="M 0 0 L 4 4 L 8 0 Z"/>
    </Grid>
    <ControlTemplate.Triggers>
      <Trigger Property="ToggleButton.IsMouseOver" Value="true">
        <Setter TargetName="Border" Property="Background">
          <Setter.Value>
            <LinearGradientBrush EndPoint="0.501,0.039" StartPoint="0.501,0.971">
              <GradientStop Color="#FF5287E8" Offset="0.335"/>
              <GradientStop Color="#FFA4D4F4" Offset="0.879"/>
              <GradientStop Color="#FF075AB7" Offset="0.011"/>
              <GradientStop Color="#FFA4D4F4" Offset="0.986"/>
            </LinearGradientBrush>
          </Setter.Value>
        </Setter>
      </Trigger>
      <Trigger Property="ToggleButton.IsChecked" Value="true">
        <Setter TargetName="Border" Property="Background">
          <Setter.Value>
            <LinearGradientBrush EndPoint="0.501,0.039" StartPoint="0.501,0.971">
              <GradientStop Color="#FF5287E8" Offset="0.335"/>
              <GradientStop Color="#FFA4D4F4" Offset="0.879"/>
              <GradientStop Color="#FF075AB7" Offset="0.011"/>
              <GradientStop Color="#FFA4D4F4" Offset="0.986"/>
            </LinearGradientBrush>
          </Setter.Value>
        </Setter>
      </Trigger>
      <Trigger Property="IsEnabled" Value="False">
        <Setter TargetName="Border" Property="Background" Value="{StaticResource DisabledBackgroundBrush}" />
        <Setter TargetName="Border" Property="BorderBrush" Value="{StaticResource DisabledBorderBrush}" />
        <Setter Property="Foreground" Value="{StaticResource DisabledForegroundBrush}"/>
        <Setter TargetName="Arrow" Property="Fill" Value="{StaticResource DisabledForegroundBrush}" />
      </Trigger>
    </ControlTemplate.Triggers>
  </ControlTemplate>

  <ControlTemplate x:Key="ComboBoxTextBox" TargetType="TextBox">
    <Border x:Name="PART_ContentHost" Focusable="False" Background="{TemplateBinding Background}" />
  </ControlTemplate>

  <Style x:Key="FamilyMemberComboBox" TargetType="ComboBox">
    <Setter Property="SnapsToDevicePixels" Value="true"/>
    <Setter Property="OverridesDefaultStyle" Value="true"/>
    <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
    <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
    <Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
    <Setter Property="MinWidth" Value="120"/>
    <Setter Property="MinHeight" Value="20"/>
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="ComboBox">
          <Grid>
            <ToggleButton
              Name="ToggleButton"
              Template="{StaticResource FamilyMemberComboBoxToggleButton}"
              Grid.Column="2"
              Focusable="false"
              IsChecked="{Binding Path=IsDropDownOpen,Mode=TwoWay,RelativeSource={RelativeSource TemplatedParent}}"
              ClickMode="Press">
            </ToggleButton>
            <ContentPresenter
              Name="ContentSite"
              IsHitTestVisible="False"
              Content="{TemplateBinding SelectionBoxItem}"
              ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}"
              ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}"
              Margin="3,3,23,3"
              VerticalAlignment="Center"
              HorizontalAlignment="Left" />
            <TextBox x:Name="PART_EditableTextBox"
              Style="{x:Null}"
              Template="{StaticResource ComboBoxTextBox}"
              HorizontalAlignment="Left"
              VerticalAlignment="Center"
              Margin="3,3,23,3"
              Focusable="True"
              Background="Transparent"
              Visibility="Hidden"
              IsReadOnly="{TemplateBinding IsReadOnly}"/>
            <Popup
              Name="Popup"
              Placement="Bottom"
              IsOpen="{TemplateBinding IsDropDownOpen}"
              AllowsTransparency="True"
              Focusable="False"
              PopupAnimation="Slide">
              <Grid
                Name="DropDown"
                SnapsToDevicePixels="True"
                MinWidth="{TemplateBinding ActualWidth}"
                MaxHeight="{TemplateBinding MaxDropDownHeight}">
                <Border
                  x:Name="DropDownBorder"
                  Background="{StaticResource WindowBackgroundBrush}"
                  BorderThickness="1"
                  BorderBrush="{StaticResource SolidBorderBrush}"/>
                <ScrollViewer Margin="4,6,4,6" SnapsToDevicePixels="True">
                  <StackPanel>
                    <TextBlock Text="Add new person as" />
                    <StackPanel IsItemsHost="True" KeyboardNavigation.DirectionalNavigation="Contained" />
                  </StackPanel>
                </ScrollViewer>
              </Grid>
            </Popup>
          </Grid>
          <ControlTemplate.Triggers>
            <Trigger Property="HasItems" Value="false">
              <Setter TargetName="DropDownBorder" Property="MinHeight" Value="95"/>
            </Trigger>
            <Trigger Property="IsEnabled" Value="false">
              <Setter Property="Foreground" Value="{StaticResource DisabledForegroundBrush}"/>
            </Trigger>
            <Trigger Property="IsGrouping" Value="true">
              <Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
            </Trigger>
            <Trigger SourceName="Popup" Property="Popup.AllowsTransparency" Value="true">
              <Setter TargetName="DropDownBorder" Property="CornerRadius" Value="4"/>
              <Setter TargetName="DropDownBorder" Property="Margin" Value="0,2,0,0"/>
            </Trigger>
            <Trigger Property="IsEditable"
                 Value="true">
              <Setter Property="IsTabStop" Value="false"/>
              <Setter TargetName="PART_EditableTextBox" Property="Visibility"    Value="Visible"/>
              <Setter TargetName="ContentSite" Property="Visibility" Value="Hidden"/>
            </Trigger>
          </ControlTemplate.Triggers>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

  <DrawingBrush x:Key="ErrorIcon">
    <DrawingBrush.Drawing>
      <DrawingGroup>
        <DrawingGroup.Children>
          <GeometryDrawing Brush="#FFFFE9E9" Geometry="F1 M 18.864,1179.45L 2.50133,1179.45C 1.496,1179.45 0.682667,1180.27 0.682667,1181.29L 0.682667,1192.28C 0.682667,1193.29 1.496,1194.12 2.50133,1194.12L 11.78,1194.12L 16.8827,1199.22L 16.8827,1194.12L 18.864,1194.12C 19.8667,1194.12 20.6827,1193.29 20.6827,1192.28L 20.6827,1181.29C 20.6827,1180.27 19.8667,1179.45 18.864,1179.45 Z ">
            <GeometryDrawing.Pen>
              <Pen Thickness="1.33333" LineJoin="Round" Brush="#FF8E0E0E"/>
            </GeometryDrawing.Pen>
          </GeometryDrawing>
          <GeometryDrawing Geometry="F1 M 4.344,1184.77L 16.7987,1184.77">
            <GeometryDrawing.Pen>
              <Pen Thickness="1.33333" LineJoin="Round" Brush="#FF8E0E0E"/>
            </GeometryDrawing.Pen>
          </GeometryDrawing>
          <GeometryDrawing Geometry="F1 M 4.34667,1187.98L 16.7933,1187.98">
            <GeometryDrawing.Pen>
              <Pen Thickness="1.33333" LineJoin="Round" Brush="#FF8E0E0E"/>
            </GeometryDrawing.Pen>
          </GeometryDrawing>
        </DrawingGroup.Children>
      </DrawingGroup>
    </DrawingBrush.Drawing>
  </DrawingBrush>

</ResourceDictionary>